You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.5 KiB

24 years ago
25 years ago
25 years ago
  1. # +----------------------------------------------------------------------+
  2. # | PHP Version 5 |
  3. # +----------------------------------------------------------------------+
  4. # | Copyright (c) 1997-2004 The PHP Group |
  5. # +----------------------------------------------------------------------+
  6. # | This source file is subject to version 3.0 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_0.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$
  18. #
  19. #
  20. # Makefile to generate build tools
  21. #
  22. ZENDDIR = Zend
  23. SUBDIRS = $(ZENDDIR) TSRM
  24. STAMP = buildmk.stamp
  25. ALWAYS = generated_lists
  26. all: $(STAMP) $(ALWAYS)
  27. @$(MAKE) AMFLAGS=$(AMFLAGS) -s -f build/build2.mk
  28. generated_lists:
  29. @echo makefile_am_files = $(ZENDDIR)/Makefile.am \
  30. TSRM/Makefile.am > $@
  31. @echo config_h_files = $(ZENDDIR)/acconfig.h TSRM/acconfig.h >> $@
  32. @echo config_m4_files = $(ZENDDIR)/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \
  33. $(ZENDDIR)/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@
  34. $(STAMP): build/buildcheck.sh
  35. @build/buildcheck.sh $(STAMP)
  36. snapshot:
  37. distname='$(DISTNAME)'; \
  38. if test -z "$$distname"; then \
  39. distname='php5-snapshot'; \
  40. fi; \
  41. myname=`basename \`pwd\`` ; \
  42. cd .. && cp -rp $$myname $$distname; \
  43. cd $$distname; \
  44. rm -f $(SUBDIRS) 2>/dev/null || true; \
  45. for i in $(SUBDIRS); do \
  46. test -d $$i || (test -d ../$$i && cp -rp ../$$i $$i); \
  47. done; \
  48. find . -type l -exec rm {} \; ; \
  49. $(MAKE) AMFLAGS=--copy -f build/build.mk; \
  50. cd ..; \
  51. tar cf $$distname.tar $$distname; \
  52. rm -rf $$distname $$distname.tar.*; \
  53. bzip2 -9 $$distname.tar; \
  54. md5sum $$distname.tar.bz2; \
  55. sync; sleep 2; \
  56. md5sum $$distname.tar.bz2; \
  57. bzip2 -t $$distname.tar.bz2
  58. cvsclean:
  59. @for i in `find . -name .cvsignore`; do \
  60. (cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore | grep -v config.nice` *.o *.a .libs || true); \
  61. done
  62. .PHONY: $(ALWAYS) snapshot cvsclean
  63. .PRECIOUS: cvsclean