tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: conditionally forcing a target to be built



On Sat, 14 Feb 2015 20:48:15 +0100
Edgar Fuß <ef%math.uni-bonn.de@localhost> wrote:

> Is there a more elegant way to conditionally (i.e. based on a make target 
> or make variable) force a target to be re-built using the original rules 
> in place for that target than:
> 
> .ifmake force
> force:
> 
> target: .EXEC
> .endif
> 
> target: source ...
> 	...

.PHONY: ${LIST_OF_FORCED_TARGETS}

run make with 

$ make LIST_OF_FORCED_TARGETS="buildthis.o andthis.o"

Cheers,
-T


Home | Main Index | Thread Index | Old Index