Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ configure
confdefs.h
conftest*

# Generated by `./buildconf` script as a helper for further build/build2.mk file
/generated_lists

# Generated by configure scripts on all systems
/main/internal_functions.c
/main/internal_functions_cli.c
Expand Down
11 changes: 2 additions & 9 deletions build/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -64,4 +57,4 @@ gitclean-work:
fi; \
git clean -X -f -d;

.PHONY: $(ALWAYS) snapshot
.PHONY: snapshot
4 changes: 1 addition & 3 deletions build/build2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
6 changes: 3 additions & 3 deletions buildconf
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ fi

echo "buildconf: Building configure files"

rm -f generated_lists
M4_FILES=$(echo TSRM/*.m4 Zend/*.m4 ext/*/config*.m4 sapi/*/config*.m4)

if test "$debug" = "1"; then
$MAKE -s -f build/build.mk SUPPRESS_WARNINGS=""
$MAKE -s -f build/build.mk SUPPRESS_WARNINGS="" M4_FILES="$M4_FILES"
else
$MAKE -s -f build/build.mk
$MAKE -s -f build/build.mk M4_FILES="$M4_FILES"
fi