# $FreeBSD: releng/10.2/usr.sbin/crunch/examples/Makefile 276486 2014-12-31 23:25:37Z ngie $ CRUNCHED= fixit # below is boiler-plate to make $(CRUNCHED) from $(CRUNCHED).conf # I'd use PROG instead of CRUNCHED, but the system makefiles REALLY want # to build things in the normal way if you use PROG. CONF= $(CRUNCHED).conf OUTMK= $(CRUNCHED).mk OUTPUTS= $(OUTMK) $(CRUNCHED).c $(CRUNCHED).cache MAN= CLEANFILES+= $(CRUNCHED) *.o *.lo *.c *.mk *.cache CLEANDIRFILES+= $(OUTPUTS) all: $(CRUNCHED) exe: $(CRUNCHED) $(OUTPUTS): $(CONF) MAKE=${MAKE} crunchgen ${.CURDIR}/$(CONF) $(CRUNCHED): $(OUTPUTS) submake submake: ${MAKE} -f $(OUTMK) objs: ${MAKE} -f $(OUTMK) objs cleandir: rm -f $(CLEANDIRFILES) .include