Fixed GNUmakefile to use CONFDIR only if present.

This commit is contained in:
hjp 2002-01-23 17:42:06 +00:00
parent 08a6803030
commit efe5d8b4a1
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
include GNUmakevars include GNUmakevars
CONFDIR=../../configure CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
all: configure oragetsrc all: configure oragetsrc
@ -20,9 +21,13 @@ install: $(BINDIR) $(BINDIR)/oragetsrc
customize: configure customize: configure
sh ./configure sh ./configure
ifeq ($(CONFDIR_exists),ok)
configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish
cat $^ > $@ cat $^ > $@
endif
$(BINDIR): $(BINDIR):
mkdir -p $@ mkdir -p $@