1 2 CRUNCHED= fixit 3 4 # below is boiler-plate to make $(CRUNCHED) from $(CRUNCHED).conf 5 # I'd use PROG instead of CRUNCHED, but the system makefiles REALLY want 6 # to build things in the normal way if you use PROG. 7 8 CONF= $(CRUNCHED).conf 9 10 OUTMK= $(CRUNCHED).mk 11 OUTPUTS= $(OUTMK) $(CRUNCHED).c $(CRUNCHED).cache 12 13 NOMAN= 14 CLEANFILES+=$(CRUNCHED) $(OUTPUTS) *.o *.lo *_stub.c 15 16 all: $(CRUNCHED) 17 exe: $(CRUNCHED) 18 19 $(OUTPUTS): $(CONF) 20 crunchgen ${.CURDIR}/$(CONF) 21 22 $(CRUNCHED): $(OUTPUTS) submake 23 24 submake: 25 make -f $(OUTMK) 26 objs: 27 make -f $(OUTMK) objs 28 29 .include <bsd.prog.mk> 30