diff options
Diffstat (limited to 'usr.sbin/crunch/examples/Makefile')
-rw-r--r-- | usr.sbin/crunch/examples/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/usr.sbin/crunch/examples/Makefile b/usr.sbin/crunch/examples/Makefile new file mode 100644 index 0000000..1208301 --- /dev/null +++ b/usr.sbin/crunch/examples/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +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 + +NO_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 <bsd.prog.mk> |