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