summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-04-13 15:53:20 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-04-16 17:25:08 +0200
commitb09fa9ed530df47bff03b151931fa4464a388d35 (patch)
treeff62b68b44d7298d6915d2ff55f0a3b628b6d69f /build
parent12ee246ae45889004fc2c099c04cfff1ce6e8848 (diff)
downloadphp-git-b09fa9ed530df47bff03b151931fa4464a388d35.tar.gz
Simplify generated_lists generation
The `generated_lists` file is generated as a helper for build related Makefile to include a list of *.m4 files prerequisites. When some of these *.m4 files change, the configure script is regenerated when buildconf is run. This can be simplified using dynamic environment variable passed to the Makefile directly so it avoids another file from being generated in the project root directory and shipping it with the PHP release or creating a dedicated gitignore rule. This is portable across all POSIX compatible makes So this patch includes GNU Make, and everybody elses' make derivative support.
Diffstat (limited to 'build')
-rw-r--r--build/build.mk11
-rw-r--r--build/build2.mk4
2 files changed, 3 insertions, 12 deletions
diff --git a/build/build.mk b/build/build.mk
index b3fa3e2285..bf7bbf4be5 100644
--- a/build/build.mk
+++ b/build/build.mk
@@ -22,16 +22,9 @@ SUBDIRS = Zend TSRM
STAMP = buildmk.stamp
-ALWAYS = generated_lists
-
-
-all: $(STAMP) $(ALWAYS)
+all: $(STAMP)
@$(MAKE) -s -f build/build2.mk
-generated_lists:
- @echo config_m4_files = Zend/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \
- Zend/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@
-
$(STAMP): build/buildcheck.sh
@build/buildcheck.sh $(STAMP)
@@ -64,4 +57,4 @@ gitclean-work:
fi; \
git clean -X -f -d;
-.PHONY: $(ALWAYS) snapshot
+.PHONY: snapshot
diff --git a/build/build2.mk b/build/build2.mk
index 690166e887..b6b0343abf 100644
--- a/build/build2.mk
+++ b/build/build2.mk
@@ -14,8 +14,6 @@
# | Author: Sascha Schumann <sascha@schumann.cx> |
# +----------------------------------------------------------------------+
-include generated_lists
-
config_h_in = main/php_config.h.in
targets = configure $(config_h_in)
@@ -40,7 +38,7 @@ aclocal.m4: configure.ac acinclude.m4
@echo rebuilding $@
cat acinclude.m4 ./build/libtool.m4 > $@
-configure: aclocal.m4 configure.ac $(config_m4_files)
+configure: aclocal.m4 configure.ac $(M4_FILES)
@echo rebuilding $@
@rm -f $@
$(PHP_AUTOCONF) -f $(SUPPRESS_WARNINGS)