simple/tiny/GNUmakefile

34 lines
513 B
Makefile

include GNUmakevars
CONFDIR=../../configure
all: configure dus fnp fnpa fnpc fqdn isodate psg
clean:
rm fnp fnpa fnpc customize
install: \
$(BINDIR)/dus \
$(BINDIR)/fnp \
$(BINDIR)/fnpa \
$(BINDIR)/fnpc \
$(BINDIR)/fqdn \
$(BINDIR)/isodate \
$(BINDIR)/psg \
fnp: fnp.sh
fnpa: fnpa.sh
fnpc: fnpc.sh
%: %.sh customize
sh ./customize < $< > $@
chmod +x $@
customize: configure
sh ./configure
configure: $(CONFDIR)/start $(CONFDIR)/find-printf $(CONFDIR)/finish
cat $^ > $@
include GNUmakerules