1 # $NetBSD: Makefile,v 1.6 2003/07/10 11:21:51 lukem Exp $ 2 3 NOMAN= # defined 4 5 CRUNCHED= 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 11 CONF= $(CRUNCHED).conf 12 13 OUTMK= $(CRUNCHED).mk 14 OUTPUTS= $(OUTMK) $(CRUNCHED).c $(CRUNCHED).cache 15 16 CLEANFILES+=$(CRUNCHED) $(OUTPUTS) *.o *.lo *_stub.c 17 18 all: $(CRUNCHED) 19 exe: $(CRUNCHED) 20 21 $(OUTPUTS): $(CONF) 22 crunchgen ${.CURDIR}/$(CONF) 23 24 $(CRUNCHED): $(OUTPUTS) submake 25 26 submake: 27 ${MAKE} -f $(OUTMK) 28 objs: 29 ${MAKE} -f $(OUTMK) objs 30 31 .include <bsd.prog.mk> 32