2003-12-18 17:31:40 +01:00
|
|
|
include GNUmakevars
|
|
|
|
|
|
|
|
TARGETS = apppath preppath delpath apppath.1 preppath.1 delpath.1
|
|
|
|
CONFDIR=../../configure
|
|
|
|
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
|
|
|
|
|
|
|
|
all: configure $(TARGETS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TARGETS) *.bak core foo bar baz *.ps
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f customize
|
|
|
|
|
|
|
|
install: $(BINDIR) \
|
|
|
|
$(BINDIR)/apppath \
|
|
|
|
$(BINDIR)/preppath \
|
|
|
|
$(BINDIR)/delpath \
|
2005-10-31 09:16:56 +01:00
|
|
|
$(MAN1DIR) \
|
2003-12-18 17:31:40 +01:00
|
|
|
$(MAN1DIR)/apppath.1 \
|
|
|
|
$(MAN1DIR)/preppath.1 \
|
|
|
|
$(MAN1DIR)/delpath.1 \
|
|
|
|
|
|
|
|
|
|
|
|
%.1: %.pl
|
|
|
|
pod2man $< > $@
|
|
|
|
|
|
|
|
%: %.pl customize
|
|
|
|
sh ./customize < $< > $@
|
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
%: %.sh customize
|
|
|
|
sh ./customize < $< > $@
|
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
customize: configure
|
|
|
|
sh ./configure
|
|
|
|
|
2005-10-31 09:16:56 +01:00
|
|
|
$(BINDIR) $(MAN1DIR):
|
2003-12-18 17:31:40 +01:00
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
ifeq ($(CONFDIR_exists),ok)
|
|
|
|
|
|
|
|
configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2006-03-06 17:54:34 +01:00
|
|
|
GNUmakevars: GNUmakevars.sh
|
|
|
|
sh ./$^ > $@
|
2011-10-07 09:51:23 +02:00
|
|
|
GNUmakerules: GNUmakerules.pl
|
|
|
|
perl ./$^ > $@
|
2006-03-06 17:54:34 +01:00
|
|
|
|
2003-12-18 17:31:40 +01:00
|
|
|
|
|
|
|
include GNUmakerules
|