# To be defined on the "make" command line: M3TARGET = M3TARGET.IS.UNDEFINED SHAPES = \ cube \ klein \ klein2 \ klein3 \ orange \ pplane \ ring \ sausage \ sausage2 \ star \ starbug1 \ starbug2 \ stick \ tetra \ torus \ fork \ bitorus \ tritorus \ cup \ flaps ORDERS = 3 4 5 PROG = ../$(M3TARGET)/MakeShape all: ;\ for n in $(ORDERS); do \ for s in $(SHAPES); do \ ( make ORDER=$$n SHAPE=$$s M3TARGET=$(M3TARGET) single; ) \ done \ done ORDER = ORDER.IS.UNDEFINED SHAPE = SHAPE.IS.UNDEFINED single: $(SHAPE)-$(ORDER).top $(SHAPE)-$(ORDER).top: $(PROG) ; \ $(PROG) -gridOrder $(ORDER) -shape $(SHAPE)