simple/pathtools/GNUmakefile

56 lines
917 B
Makefile
Raw Normal View History

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
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.pl
perl ./$^ > $@
2003-12-18 17:31:40 +01:00
include GNUmakerules