xref: /netbsd-src/usr.bin/crunch/examples/Makefile (revision 481fca6e59249d8ffcf24fef7cfbe7b131bfb080)
1#	$NetBSD: Makefile,v 1.3 1999/02/13 02:54:55 lukem 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
14MKMAN=	no
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