I have a very long make file that I would like to consolidate. It looks like this:
target_a_1: begin touch $@target_a_2: target_a_1 touch $@target_b_1: begin touch $@target_b_2: target_b_1 touch $@target_c_1: begin touch $@target_c_2: target_c_1 touch $@all: target_a_1 target_b_1 target_c1 touch $@
targets = a b cforeach(t $targets target_$t_1: begin touch $@ target_$t_2: target_$t_1 touch $@)all: ????
1/6/2010 11:48:52 AM
Maybe if sysadmins andd tech support used make files I would have gotten a reply
1/8/2010 8:19:33 AM
why not just put the looped behaviour you want in a perl script and invoke that from the makefile
1/8/2010 3:46:55 PM
Because I need to maintain the make dependencies...
1/8/2010 4:21:28 PM