Annotation of embedaddon/php/build/build.mk, revision 1.1

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: #
        !            17: # $Id: build.mk 313218 2011-07-13 23:28:48Z fat $ 
        !            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_h_files = Zend/acconfig.h TSRM/acconfig.h >> $@
        !            36:        @echo config_m4_files = Zend/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \
        !            37:                Zend/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@
        !            38: 
        !            39: $(STAMP): build/buildcheck.sh
        !            40:        @build/buildcheck.sh $(STAMP)
        !            41: 
        !            42: snapshot:
        !            43:        distname='$(DISTNAME)'; \
        !            44:        if test -z "$$distname"; then \
        !            45:                distname='php5-snapshot'; \
        !            46:        fi; \
        !            47:        myname=`basename \`pwd\`` ; \
        !            48:        cd .. && cp -rp $$myname $$distname; \
        !            49:        cd $$distname; \
        !            50:        rm -f $(SUBDIRS) 2>/dev/null || true; \
        !            51:        for i in $(SUBDIRS); do \
        !            52:                test -d $$i || (test -d ../$$i && cp -rp ../$$i $$i); \
        !            53:        done; \
        !            54:        find . -type l -exec rm {} \; ; \
        !            55:        $(MAKE) -f build/build.mk; \
        !            56:        cd ..; \
        !            57:        tar cf $$distname.tar $$distname; \
        !            58:        rm -rf $$distname $$distname.tar.*; \
        !            59:        bzip2 -9 $$distname.tar; \
        !            60:        md5sum $$distname.tar.bz2; \
        !            61:        sync; sleep 2; \
        !            62:        md5sum $$distname.tar.bz2; \
        !            63:        bzip2 -t $$distname.tar.bz2
        !            64: 
        !            65: cvsclean-work:
        !            66:        @for i in `find . -name .cvsignore`; do \
        !            67:                (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); \
        !            68:        done
        !            69: 
        !            70: svnclean-work:
        !            71:        @for i in `find . -type d ! -path '*/.svn/*' | grep -v '.svn'`; do \
        !            72:                (cd $$i 2>/dev/null && rm -rf `svn propget svn:ignore . | grep -v config.nice` *.o *.a *.lo *.la *.gcno *.gcda .libs || true); \
        !            73:        done
        !            74: 
        !            75: gitclean-work:
        !            76:        @if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \
        !            77:                (echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \
        !            78:        fi; \
        !            79:        git clean -X -f -d;
        !            80: 
        !            81: .PHONY: $(ALWAYS) snapshot

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>