simple/tiny/GNUmakefile

39 lines
601 B
Makefile
Raw Normal View History

2000-01-11 14:24:36 +01:00
include GNUmakevars
CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
2002-08-14 20:51:19 +02:00
all: configure dus fnp fnpa fnpc isodate psg save
clean:
rm fnp fnpa fnpc customize
2000-01-11 14:24:36 +01:00
install: \
$(BINDIR)/dus \
$(BINDIR)/fnp \
$(BINDIR)/fnpa \
$(BINDIR)/fnpc \
$(BINDIR)/isodate \
$(BINDIR)/psg \
2001-07-26 10:14:44 +02:00
$(BINDIR)/save \
2000-01-11 14:24:36 +01:00
fnp: fnp.sh
fnpa: fnpa.sh
fnpc: fnpc.sh
%: %.sh customize
sh ./customize < $< > $@
chmod +x $@
customize: configure
sh ./configure
ifeq ($(CONFDIR_exists),ok)
configure: $(CONFDIR)/start $(CONFDIR)/find-printf $(CONFDIR)/finish
cat $^ > $@
2000-01-11 14:24:36 +01:00
endif
2000-01-11 14:24:36 +01:00
include GNUmakerules