Ver=2.1 Base=$(HOME)/svns/wisp/tags/STAR Stems=eo1 glas map themis sdo Out=$(HOME)/var Star=$(HOME)/STAR all : install runs runs : @ $(foreach Stem, $(Stems), \ $(MAKE) Stem=$(Stem) Pol=strategic run ; \ $(MAKE) Stem=$(Stem) Pol=tactical run ; \ ) install: if [ ! -d $(Out) ]; then mkdir $(Out); fi cd $(Base)/$(Ver) && make run : $(Stem).ranges $(Stem).values cp $(Stem).ranges $(Star)/STAR_projects cp $(Stem).values $(Star)/STAR_projects PATH="$(PATH):$(HOME)/bin" ; STAR -pol $(Pol) -l -ex -f $(Stem) | tee $(Out)/$(Stem).$(Pol)