Use configure dir only if present.
This commit is contained in:
parent
56bd5eb852
commit
0e3c5c7957
|
@ -1,6 +1,7 @@
|
||||||
include GNUmakevars
|
include GNUmakevars
|
||||||
|
|
||||||
CONFDIR=../../configure
|
CONFDIR=../../configure
|
||||||
|
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
|
||||||
|
|
||||||
all: configure fact
|
all: configure fact
|
||||||
|
|
||||||
|
@ -20,9 +21,13 @@ install: $(BINDIR) $(BINDIR)/fact
|
||||||
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 $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue