NetBSD/usr.bin/crunch/examples/Makefile

32 lines
646 B
Makefile
Raw Normal View History

2003-07-10 15:21:51 +04:00
# $NetBSD: Makefile,v 1.6 2003/07/10 11:21:51 lukem Exp $
NOMAN= # defined
1994-08-29 18:47:29 +04:00
CRUNCHED= fixit
# below is boiler-plate to make $(CRUNCHED) from $(CRUNCHED).conf
# I'd use PROG instead of CRUNCHED, but the system makefiles REALLY want
# to build things in the normal way if you use PROG.
CONF= $(CRUNCHED).conf
OUTMK= $(CRUNCHED).mk
OUTPUTS= $(OUTMK) $(CRUNCHED).c $(CRUNCHED).cache
CLEANFILES+=$(CRUNCHED) $(OUTPUTS) *.o *.lo *_stub.c
all: $(CRUNCHED)
exe: $(CRUNCHED)
$(OUTPUTS): $(CONF)
crunchgen ${.CURDIR}/$(CONF)
$(CRUNCHED): $(OUTPUTS) submake
submake:
2000-08-31 03:51:46 +04:00
${MAKE} -f $(OUTMK)
1994-08-29 18:47:29 +04:00
objs:
2000-08-31 03:51:46 +04:00
${MAKE} -f $(OUTMK) objs
1994-08-29 18:47:29 +04:00
.include <bsd.prog.mk>