90e655ea4e
These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
34 lines
645 B
Makefile
34 lines
645 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
|
|
|
|
NOMAN= #true
|
|
CLEANFILES+= $(CRUNCHED) *.o *.lo *.c *.mk *.cache
|
|
CLEANDIRFILES+= $(OUTPUTS)
|
|
|
|
all: $(CRUNCHED)
|
|
exe: $(CRUNCHED)
|
|
|
|
$(OUTPUTS): $(CONF)
|
|
crunchgen ${.CURDIR}/$(CONF)
|
|
|
|
$(CRUNCHED): $(OUTPUTS) submake
|
|
|
|
submake:
|
|
make -f $(OUTMK)
|
|
objs:
|
|
make -f $(OUTMK) objs
|
|
cleandir:
|
|
rm -f $(CLEANDIRFILES)
|
|
|
|
.include <bsd.prog.mk>
|