54 lines
861 B
Makefile
54 lines
861 B
Makefile
-include GNUmakevars
|
|
|
|
CONFDIR=../../configure
|
|
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
|
|
|
|
GNUmakevars: GNUmakevars.sh
|
|
sh ./$^ > $@
|
|
GNUmakerules: GNUmakerules.sh
|
|
sh ./$^ > $@
|
|
|
|
all: configure dus fnp fnpa fnpc isodate psg save crypt
|
|
|
|
clean:
|
|
rm fnp fnpa fnpc customize crypt
|
|
|
|
install: \
|
|
$(BINDIR)/crypt \
|
|
$(BINDIR)/dus \
|
|
$(BINDIR)/findsock \
|
|
$(BINDIR)/fnp \
|
|
$(BINDIR)/fnpa \
|
|
$(BINDIR)/fnpc \
|
|
$(BINDIR)/isodate \
|
|
$(BINDIR)/psg \
|
|
$(BINDIR)/save \
|
|
$(BINDIR)/savedate \
|
|
|
|
fnp: fnp.sh
|
|
fnpa: fnpa.sh
|
|
fnpc: fnpc.sh
|
|
crypt: crypt.pl
|
|
|
|
%: %.sh customize
|
|
sh ./customize < $< > $@
|
|
chmod +x $@
|
|
|
|
%: %.pl customize
|
|
sh ./customize < $< > $@
|
|
chmod +x $@
|
|
|
|
customize: configure
|
|
sh ./configure
|
|
|
|
ifeq ($(CONFDIR_exists),ok)
|
|
|
|
configure: $(CONFDIR)/start \
|
|
$(CONFDIR)/find-printf $(CONFDIR)/perl \
|
|
$(CONFDIR)/finish
|
|
cat $^ > $@
|
|
|
|
endif
|
|
|
|
-include GNUmakerules
|