1# +----------------------------------------------------------------------+ 2# | PHP Version 7 | 3# +----------------------------------------------------------------------+ 4# | Copyright (c) 1997-2018 The PHP Group | 5# +----------------------------------------------------------------------+ 6# | This source file is subject to version 3.01 of the PHP license, | 7# | that is bundled with this package in the file LICENSE, and is | 8# | available through the world-wide-web at the following url: | 9# | http://www.php.net/license/3_01.txt | 10# | If you did not receive a copy of the PHP license and are unable to | 11# | obtain it through the world-wide-web, please send a note to | 12# | license@php.net so we can mail you a copy immediately. | 13# +----------------------------------------------------------------------+ 14# | Author: Sascha Schumann <sascha@schumann.cx> | 15# +----------------------------------------------------------------------+ 16# 17# 18# Makefile to generate build tools 19# 20 21SUBDIRS = Zend TSRM 22 23STAMP = buildmk.stamp 24 25ALWAYS = generated_lists 26 27 28all: $(STAMP) $(ALWAYS) 29 @$(MAKE) -s -f build/build2.mk 30 31generated_lists: 32 @echo makefile_am_files = Zend/Makefile.am TSRM/Makefile.am > $@ 33 @echo config_m4_files = Zend/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \ 34 Zend/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@ 35 36$(STAMP): build/buildcheck.sh 37 @build/buildcheck.sh $(STAMP) 38 39snapshot: 40 distname='$(DISTNAME)'; \ 41 if test -z "$$distname"; then \ 42 distname='php7-snapshot'; \ 43 fi; \ 44 myname=`basename \`pwd\`` ; \ 45 cd .. && cp -rp $$myname $$distname; \ 46 cd $$distname; \ 47 rm -f $(SUBDIRS) 2>/dev/null || true; \ 48 for i in $(SUBDIRS); do \ 49 test -d $$i || (test -d ../$$i && cp -rp ../$$i $$i); \ 50 done; \ 51 find . -type l -exec rm {} \; ; \ 52 $(MAKE) -f build/build.mk; \ 53 cd ..; \ 54 tar cf $$distname.tar $$distname; \ 55 rm -rf $$distname $$distname.tar.*; \ 56 bzip2 -9 $$distname.tar; \ 57 md5sum $$distname.tar.bz2; \ 58 sync; sleep 2; \ 59 md5sum $$distname.tar.bz2; \ 60 bzip2 -t $$distname.tar.bz2 61 62gitclean-work: 63 @if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \ 64 (echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \ 65 fi; \ 66 git clean -X -f -d; 67 68.PHONY: $(ALWAYS) snapshot 69