Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Problem with multiple outputType elements during incremental build

Hi,
 
  I have a tool that has 1 inputType element(.cla) & 2 outputType elements(.o & dsevar_%.h).
Both the outputTypes are produced with a single invocation of the tool.
 
A fresh make (after a clean) works perfectly, i.e. in a single invocation, both O/Ps are generated.
Now, I make a small change in the .cla input and the incremental builder does:
 
tool.exe -c -oCLA_example.o ../CLA_example.cla
tool.exe -c -odsevar_CLA_example.h ../CLA_example.cla
    INSTEAD OF JUST
 
tool.exe -c -oCLA_example.o ../CLA_example.cla
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Generated make rules contain:
%.o dsevar_%.h: $(ROOT)/%.cla
 @echo 'Building file: $<'
 @echo 'Invoking: toolABC'
 @echo dseclasm -c -o$@ $<
 @dseclasm -c -o$@ $<
 @echo 'Finished building: $<'
 @echo ' '
 
dsevar_CLA_example.h: CLA_example.o
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
I can't understand the reason for this behaviour.
Any inputs would be appreciated.
 
Thankyou,
Delicia.

Back to the top