Deleted Added
full compact
Makefile (80029) Makefile (136910)
1# $FreeBSD: head/usr.sbin/crunch/examples/Makefile 80029 2001-07-20 06:20:32Z obrien $
1# $FreeBSD: head/usr.sbin/crunch/examples/Makefile 136910 2004-10-24 15:33:08Z ru $
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
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
14NOMAN= #true
14NOMAN=
15CLEANFILES+= $(CRUNCHED) *.o *.lo *.c *.mk *.cache
16CLEANDIRFILES+= $(OUTPUTS)
17
18all: $(CRUNCHED)
19exe: $(CRUNCHED)
20
21$(OUTPUTS): $(CONF)
22 crunchgen ${.CURDIR}/$(CONF)
23
24$(CRUNCHED): $(OUTPUTS) submake
25
26submake:
27 make -f $(OUTMK)
28objs:
29 make -f $(OUTMK) objs
30cleandir:
31 rm -f $(CLEANDIRFILES)
32
33.include <bsd.prog.mk>
15CLEANFILES+= $(CRUNCHED) *.o *.lo *.c *.mk *.cache
16CLEANDIRFILES+= $(OUTPUTS)
17
18all: $(CRUNCHED)
19exe: $(CRUNCHED)
20
21$(OUTPUTS): $(CONF)
22 crunchgen ${.CURDIR}/$(CONF)
23
24$(CRUNCHED): $(OUTPUTS) submake
25
26submake:
27 make -f $(OUTMK)
28objs:
29 make -f $(OUTMK) objs
30cleandir:
31 rm -f $(CLEANDIRFILES)
32
33.include <bsd.prog.mk>