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