1 2CRUNCHED= 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 8CONF= $(CRUNCHED).conf 9 10OUTMK= $(CRUNCHED).mk 11OUTPUTS= $(OUTMK) $(CRUNCHED).c $(CRUNCHED).cache 12 13NOMAN= 14CLEANFILES+=$(CRUNCHED) $(OUTPUTS) *.o *.lo *_stub.c 15 16all: $(CRUNCHED) 17exe: $(CRUNCHED) 18 19$(OUTPUTS): $(CONF) 20 crunchgen ${.CURDIR}/$(CONF) 21 22$(CRUNCHED): $(OUTPUTS) submake 23 24submake: 25 make -f $(OUTMK) 26objs: 27 make -f $(OUTMK) objs 28 29.include <bsd.prog.mk> 30