2000-08-20 13:36:07 +08:00
|
|
|
# +----------------------------------------------------------------------+
|
2014-09-20 00:33:14 +08:00
|
|
|
# | PHP Version 7 |
|
2000-08-20 13:36:07 +08:00
|
|
|
# +----------------------------------------------------------------------+
|
2017-01-02 23:30:12 +08:00
|
|
|
# | Copyright (c) 1997-2017 The PHP Group |
|
2000-08-20 13:36:07 +08:00
|
|
|
# +----------------------------------------------------------------------+
|
2006-01-01 20:51:34 +08:00
|
|
|
# | This source file is subject to version 3.01 of the PHP license, |
|
2000-08-20 13:36:07 +08:00
|
|
|
# | that is bundled with this package in the file LICENSE, and is |
|
2003-06-11 04:04:29 +08:00
|
|
|
# | available through the world-wide-web at the following url: |
|
2006-01-01 20:51:34 +08:00
|
|
|
# | http://www.php.net/license/3_01.txt |
|
2000-08-20 13:36:07 +08:00
|
|
|
# | If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
# | obtain it through the world-wide-web, please send a note to |
|
|
|
|
# | license@php.net so we can mail you a copy immediately. |
|
|
|
|
# +----------------------------------------------------------------------+
|
2002-02-28 16:29:35 +08:00
|
|
|
# | Author: Sascha Schumann <sascha@schumann.cx> |
|
2000-08-20 13:36:07 +08:00
|
|
|
# +----------------------------------------------------------------------+
|
1999-12-30 10:59:53 +08:00
|
|
|
#
|
2000-08-20 13:36:07 +08:00
|
|
|
#
|
1999-12-30 10:59:53 +08:00
|
|
|
# Makefile to generate build tools
|
|
|
|
#
|
|
|
|
|
2009-07-20 18:51:40 +08:00
|
|
|
SUBDIRS = Zend TSRM
|
2002-06-20 16:36:48 +08:00
|
|
|
|
1999-12-30 10:59:53 +08:00
|
|
|
STAMP = buildmk.stamp
|
|
|
|
|
|
|
|
ALWAYS = generated_lists
|
|
|
|
|
2002-06-20 16:36:48 +08:00
|
|
|
|
1999-12-30 10:59:53 +08:00
|
|
|
all: $(STAMP) $(ALWAYS)
|
2005-11-30 06:39:19 +08:00
|
|
|
@$(MAKE) -s -f build/build2.mk
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
generated_lists:
|
2009-07-20 18:51:40 +08:00
|
|
|
@echo makefile_am_files = Zend/Makefile.am TSRM/Makefile.am > $@
|
|
|
|
@echo config_m4_files = Zend/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \
|
|
|
|
Zend/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
$(STAMP): build/buildcheck.sh
|
2002-07-21 21:09:07 +08:00
|
|
|
@build/buildcheck.sh $(STAMP)
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
snapshot:
|
|
|
|
distname='$(DISTNAME)'; \
|
|
|
|
if test -z "$$distname"; then \
|
2014-09-20 16:01:44 +08:00
|
|
|
distname='php7-snapshot'; \
|
1999-12-30 10:59:53 +08:00
|
|
|
fi; \
|
|
|
|
myname=`basename \`pwd\`` ; \
|
|
|
|
cd .. && cp -rp $$myname $$distname; \
|
|
|
|
cd $$distname; \
|
|
|
|
rm -f $(SUBDIRS) 2>/dev/null || true; \
|
|
|
|
for i in $(SUBDIRS); do \
|
|
|
|
test -d $$i || (test -d ../$$i && cp -rp ../$$i $$i); \
|
|
|
|
done; \
|
|
|
|
find . -type l -exec rm {} \; ; \
|
2005-11-30 06:39:19 +08:00
|
|
|
$(MAKE) -f build/build.mk; \
|
1999-12-30 10:59:53 +08:00
|
|
|
cd ..; \
|
|
|
|
tar cf $$distname.tar $$distname; \
|
|
|
|
rm -rf $$distname $$distname.tar.*; \
|
|
|
|
bzip2 -9 $$distname.tar; \
|
|
|
|
md5sum $$distname.tar.bz2; \
|
|
|
|
sync; sleep 2; \
|
|
|
|
md5sum $$distname.tar.bz2; \
|
|
|
|
bzip2 -t $$distname.tar.bz2
|
|
|
|
|
2009-07-16 12:50:06 +08:00
|
|
|
gitclean-work:
|
2009-08-11 10:21:09 +08:00
|
|
|
@if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \
|
|
|
|
(echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \
|
|
|
|
fi; \
|
|
|
|
git clean -X -f -d;
|
2009-07-16 12:50:06 +08:00
|
|
|
|
2004-03-15 01:44:36 +08:00
|
|
|
.PHONY: $(ALWAYS) snapshot
|