Opened 16 years ago

Closed 16 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
Keywords: .SECONDARYTARGETEXPANSION Cc:

Description

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 by bird, 16 years ago

Resolution: fixed
Status: newclosed

Implemented in [1701].

Note: See TracTickets for help on using tickets.