# To be defined on the "make" command line: M3TARGET = M3TARGET.IS.UNDEFINED ORDERS = 1 2 3 4 5 6 7 8 9 PROG = ../$(M3TARGET)/MakeRawCube all: ;\ for n in $(ORDERS); do \ ( make ORDER=$$n M3TARGET=$(M3TARGET) single; ) \ done ORDER = ORDER.IS.UNDEFINED single: cube-$(ORDER).top cube-$(ORDER).top: $(PROG) ;\ $(PROG) -gridOrder $(ORDER)