freebsd-dev/usr.sbin/crunch/examples/Makefile
Warner Losh 3bdf775801 NO_MAN= has been deprecated in favor of MAN= for some time, go ahead
and finish the job. ncurses is now the only Makefile in the tree that
uses it since it wasn't a simple mechanical change, and will be
addressed in a future commit.
2014-04-13 05:21:56 +00:00

34 lines
656 B
Makefile

# $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
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>