xref: /dflybsd-src/usr.bin/crunch/examples/Makefile (revision c6ecc293ce8e93b8d4edaa12241e09350a4d3f55)
16fc6ffe8SFrançois Tigeot# $FreeBSD: head/usr.sbin/crunch/examples/Makefile 241298 2012-10-06 20:01:05Z marcel $
2fc7e83faSFrançois Tigeot
3fc7e83faSFrançois TigeotCRUNCHED=	fixit
4fc7e83faSFrançois Tigeot
5*c6ecc293SAaron LI# below is boiler-plate to make ${CRUNCHED} from ${CRUNCHED}.conf
6fc7e83faSFrançois Tigeot# I'd use PROG instead of CRUNCHED, but the system makefiles REALLY want
7fc7e83faSFrançois Tigeot# to build things in the normal way if you use PROG.
8fc7e83faSFrançois Tigeot
9*c6ecc293SAaron LICONF=	${CRUNCHED}.conf
10fc7e83faSFrançois Tigeot
11*c6ecc293SAaron LIOUTMK=	${CRUNCHED}.mk
12*c6ecc293SAaron LIOUTPUTS= ${OUTMK} ${CRUNCHED}.c ${CRUNCHED}.cache
13fc7e83faSFrançois Tigeot
1477e0f6feSSascha WildnerNOMAN=
15*c6ecc293SAaron LICLEANFILES+= ${CRUNCHED} *.o *.lo *.c *.mk *.cache
16*c6ecc293SAaron LICLEANDIRFILES+= ${OUTPUTS}
17fc7e83faSFrançois Tigeot
18*c6ecc293SAaron LIall: ${CRUNCHED}
19*c6ecc293SAaron LIexe: ${CRUNCHED}
20fc7e83faSFrançois Tigeot
21*c6ecc293SAaron LI${OUTPUTS}: ${CONF}
22*c6ecc293SAaron LI	MAKE=${MAKE} crunchgen ${.CURDIR}/${CONF}
23fc7e83faSFrançois Tigeot
24*c6ecc293SAaron LI${CRUNCHED}: ${OUTPUTS} submake
25fc7e83faSFrançois Tigeot
26fc7e83faSFrançois Tigeotsubmake:
27*c6ecc293SAaron LI	${MAKE} -f ${OUTMK}
28fc7e83faSFrançois Tigeotobjs:
29*c6ecc293SAaron LI	${MAKE} -f ${OUTMK} objs
30fc7e83faSFrançois Tigeotcleandir:
31*c6ecc293SAaron LI	rm -f ${CLEANDIRFILES}
32fc7e83faSFrançois Tigeot
33fc7e83faSFrançois Tigeot.include <bsd.prog.mk>
34