simple/cleandir/GNUmakefile

48 lines
735 B
Makefile
Raw Normal View History

1999-09-07 23:26:57 +02:00
include GNUmakevars
2003-08-23 17:38:44 +02:00
TARGETS = cleandir cleandir.1
CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
all: configure $(TARGETS)
1999-09-07 23:26:57 +02:00
clean:
rm -f $(TARGETS) *.bak core foo bar baz *.ps
distclean: clean
rm -f customize
2003-05-14 13:52:26 +02:00
install: $(BINDIR) $(BINDIR)/cleandir $(MAN1DIR)/cleandir.1
1999-09-07 23:26:57 +02:00
2003-08-23 17:38:44 +02:00
%.1: %.pl
pod2man $< > $@
1999-09-07 23:26:57 +02:00
%: %.pl customize
sh ./customize < $< > $@
chmod +x $@
%: %.sh customize
sh ./customize < $< > $@
chmod +x $@
customize: configure
sh ./configure
$(SBINDIR):
mkdir -p $@
ifeq ($(CONFDIR_exists),ok)
configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish
cat $^ > $@
endif
2006-03-08 19:06:57 +01:00
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
1999-09-07 23:26:57 +02:00
include GNUmakerules