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