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