]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - usr.sbin/crunch/examples/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / usr.sbin / crunch / examples / Makefile
1 # $FreeBSD$
2
3 CRUNCHED=       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
9 CONF=   $(CRUNCHED).conf
10
11 OUTMK=  $(CRUNCHED).mk
12 OUTPUTS= $(OUTMK) $(CRUNCHED).c $(CRUNCHED).cache
13
14 MAN=
15 CLEANFILES+= $(CRUNCHED) *.o *.lo *.c *.mk *.cache
16 CLEANDIRFILES+= $(OUTPUTS)
17
18 all: $(CRUNCHED)
19 exe: $(CRUNCHED)
20
21 $(OUTPUTS): $(CONF)
22         MAKE=${MAKE} crunchgen ${.CURDIR}/$(CONF)
23
24 $(CRUNCHED): $(OUTPUTS) submake
25
26 submake:
27         ${MAKE} -f $(OUTMK)
28 objs:
29         ${MAKE} -f $(OUTMK) objs
30 cleandir:
31         rm -f $(CLEANDIRFILES)
32
33 .include <bsd.prog.mk>