3bdf775801
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.
34 lines
656 B
Makefile
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>
|