Annotation of embedaddon/php/build/build.mk, revision 1.1.1.2
1.1 misho 1: # +----------------------------------------------------------------------+
2: # | PHP Version 5 |
3: # +----------------------------------------------------------------------+
4: # | Copyright (c) 1997-2006 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: #
1.1.1.2 ! misho 17: # $Id$
1.1 misho 18: #
19: #
20: # Makefile to generate build tools
21: #
22:
23: SUBDIRS = Zend TSRM
24:
25: STAMP = buildmk.stamp
26:
27: ALWAYS = generated_lists
28:
29:
30: all: $(STAMP) $(ALWAYS)
31: @$(MAKE) -s -f build/build2.mk
32:
33: generated_lists:
34: @echo makefile_am_files = Zend/Makefile.am TSRM/Makefile.am > $@
35: @echo config_m4_files = Zend/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \
36: Zend/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@
37:
38: $(STAMP): build/buildcheck.sh
39: @build/buildcheck.sh $(STAMP)
40:
41: snapshot:
42: distname='$(DISTNAME)'; \
43: if test -z "$$distname"; then \
44: distname='php5-snapshot'; \
45: fi; \
46: myname=`basename \`pwd\`` ; \
47: cd .. && cp -rp $$myname $$distname; \
48: cd $$distname; \
49: rm -f $(SUBDIRS) 2>/dev/null || true; \
50: for i in $(SUBDIRS); do \
51: test -d $$i || (test -d ../$$i && cp -rp ../$$i $$i); \
52: done; \
53: find . -type l -exec rm {} \; ; \
54: $(MAKE) -f build/build.mk; \
55: cd ..; \
56: tar cf $$distname.tar $$distname; \
57: rm -rf $$distname $$distname.tar.*; \
58: bzip2 -9 $$distname.tar; \
59: md5sum $$distname.tar.bz2; \
60: sync; sleep 2; \
61: md5sum $$distname.tar.bz2; \
62: bzip2 -t $$distname.tar.bz2
63:
64: cvsclean-work:
65: @for i in `find . -name .cvsignore`; do \
66: (cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore | grep -v config.nice | sed 's/[[:space:]]/ /g'` *.o *.a *.lo *.la *.gcno *.gcda .libs || true); \
67: done
68:
69: svnclean-work:
70: @for i in `find . -type d ! -path '*/.svn/*' | grep -v '.svn'`; do \
71: (cd $$i 2>/dev/null && rm -rf `svn propget svn:ignore . | grep -v config.nice` *.o *.a *.lo *.la *.gcno *.gcda .libs || true); \
72: done
73:
74: gitclean-work:
75: @if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \
76: (echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \
77: fi; \
78: git clean -X -f -d;
79:
80: .PHONY: $(ALWAYS) snapshot
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>