summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJames Cox <imajes@php.net>2002-06-20 08:21:20 +0000
committerJames Cox <imajes@php.net>2002-06-20 08:21:20 +0000
commit337e158d40a4b8e9403968959ec15c4091da195a (patch)
tree083a632e49bac101387a89cf69c263a42812324d /build
parent662962f25cb5af5b906bfc81757f703118d900dd (diff)
downloadphp-git-337e158d40a4b8e9403968959ec15c4091da195a.tar.gz
fixing to permit builds with ZE2
Diffstat (limited to 'build')
-rw-r--r--build/build.mk11
1 files changed, 5 insertions, 6 deletions
diff --git a/build/build.mk b/build/build.mk
index 30ccf8ea84..2bd761c657 100644
--- a/build/build.mk
+++ b/build/build.mk
@@ -20,7 +20,7 @@
# Makefile to generate build tools
#
-SUBDIRS = Zend TSRM
+ZENDDIR = $(shell if test -d "ZendEngine2"; then echo ZendEngine2; else echo Zend; fi)
STAMP = buildmk.stamp
@@ -30,11 +30,11 @@ all: $(STAMP) $(ALWAYS)
@$(MAKE) AMFLAGS=$(AMFLAGS) -s -f build/build2.mk
generated_lists:
- @echo makefile_am_files = Zend/Makefile.am \
+ @echo makefile_am_files = $(ZENDDIR)/Makefile.am \
TSRM/Makefile.am > $@
- @echo config_h_files = Zend/acconfig.h TSRM/acconfig.h >> $@
- @echo config_m4_files = Zend/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \
- Zend/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@
+ @echo config_h_files = $(ZENDDIR)/acconfig.h TSRM/acconfig.h >> $@
+ @echo config_m4_files = $(ZENDDIR)/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \
+ $(ZENDDIR)/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@
$(STAMP): build/buildcheck.sh
@build/buildcheck.sh && touch $(STAMP)
@@ -66,6 +66,5 @@ cvsclean:
@for i in `find . -name .cvsignore`; do \
(cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore` *.o *.a || true); \
done
- @rm -f $(SUBDIRS) 2>/dev/null || true
.PHONY: $(ALWAYS) snapshot cvsclean