include GNUmakevars CONFDIR=../../configure CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok) all: configure fact clean: rm fact customize install: $(BINDIR) $(BINDIR)/fact %: %.pl customize sh ./customize < $< > $@ chmod +x $@ %: %.sh customize sh ./customize < $< > $@ chmod +x $@ customize: configure sh ./configure ifeq ($(CONFDIR_exists),ok) configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish cat $^ > $@ endif $(BINDIR): mkdir -p $@ include GNUmakerules