Opened 11 years ago

Closed 11 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 Changed 11 years ago by bird

  • Resolution set to fixed
  • Status changed from new to closed

Implemented in [1701].

Note: See TracTickets for help on using tickets.