simple/tiny/GNUmakefile

59 lines
946 B
Makefile
Raw Permalink Normal View History

-include GNUmakevars
CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
pre: GNUmakevars GNUmakerules
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
2004-11-03 15:18:39 +01:00
all: configure dus fnp fnpa fnpc isodate psg save crypt
clean:
rm -f fnp fnpa fnpc customize crypt
distclean: clean
rm -f GNUmakevars GNUmakerules
2000-01-11 14:24:36 +01:00
install: \
2004-11-03 15:18:39 +01:00
$(BINDIR)/crypt \
2000-01-11 14:24:36 +01:00
$(BINDIR)/dus \
2004-11-03 15:18:39 +01:00
$(BINDIR)/findsock \
2000-01-11 14:24:36 +01:00
$(BINDIR)/fnp \
$(BINDIR)/fnpa \
$(BINDIR)/fnpc \
$(BINDIR)/isodate \
$(BINDIR)/psg \
2001-07-26 10:14:44 +02:00
$(BINDIR)/save \
2003-04-06 12:44:06 +02:00
$(BINDIR)/savedate \
2000-01-11 14:24:36 +01:00
fnp: fnp.sh
fnpa: fnpa.sh
fnpc: fnpc.sh
2004-11-03 15:18:39 +01:00
crypt: crypt.pl
%: %.sh customize
sh ./customize < $< > $@
chmod +x $@
2004-11-03 15:18:39 +01:00
%: %.pl customize
sh ./customize < $< > $@
chmod +x $@
customize: configure
sh ./configure
ifeq ($(CONFDIR_exists),ok)
2004-11-03 15:18:39 +01:00
configure: $(CONFDIR)/start \
$(CONFDIR)/find-printf $(CONFDIR)/perl \
$(CONFDIR)/finish
cat $^ > $@
2000-01-11 14:24:36 +01:00
endif
-include GNUmakerules