simple/cleandir/GNUmakefile

40 lines
587 B
Makefile
Raw Normal View History

1999-09-07 23:26:57 +02:00
include GNUmakevars
TARGETS = cleandir
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
install: $(BINDIR) $(BINDIR)/cleandir
%: %.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
1999-09-07 23:26:57 +02:00
include GNUmakerules