include GNUmakevars CONFDIR=../../configure CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok) all: configure oragetsrc clean: rm oragetsrc customize install: $(BINDIR) $(BINDIR)/oragetsrc %: %.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