NetBSD/usr.bin/crunch/examples/Makefile

31 lines
638 B
Makefile
Raw Normal View History

2000-08-31 03:51:46 +04:00
# $NetBSD: Makefile,v 1.4 2000/08/30 23:51:55 jhawk Exp $
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
MKMAN= no
1994-08-29 18:47:29 +04:00
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>