Opened 12 years ago

Closed 12 years ago

#42 closed enhancement (fixed)

kmk: implement secondary target expansion

Reported by: bird Owned by: bird
Priority: major Milestone: 0.1.4
Component: kmk Version: 0.1.3


GNU make sports a feature for secondary expansion of prerequisites, it will be extremely handy for kBuild to have a similar feature for targets (aka goals and files) as well. The kBuild use case is $(SomeTarget_PATH)/generated-file.h: prereq; $(APPEND) $@ whatever .

Modeling it after the secondary prerequisite expansion, the change consists of adding a new special variable .SECONDARYTARGETEXPANSION that is used to enable the feature. Detect targets needing secondary expansion in enter_file() when the string is in the cache. And finally do the expansion at the top of snap_deps().

Change History (1)

comment:1 Changed 12 years ago by bird

Resolution: fixed
Status: newclosed

Implemented in [1701].

Note: See TracTickets for help on using tickets.