home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / lib / php / build / rules.mk < prev    next >
Encoding:
Makefile  |  2001-03-06  |  2.7 KB  |  65 lines

  1. #  +----------------------------------------------------------------------+
  2. #  | PHP version 4.0                                                      |
  3. #  +----------------------------------------------------------------------+
  4. #  | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
  5. #  +----------------------------------------------------------------------+
  6. #  | This source file is subject to version 2.02 of the PHP license,      |
  7. #  | that is bundled with this package in the file LICENSE, and is        |
  8. #  | available at through the world-wide-web at                           |
  9. #  | http://www.php.net/license/2_02.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. #  | Authors: Sascha Schumann <sascha@schumann.cx>                        |
  15. #  +----------------------------------------------------------------------+
  16. #
  17. # $Id: rules.mk,v 1.25.2.2 2000/12/24 14:31:56 sas Exp $ 
  18. #
  19.  
  20. include $(top_srcdir)/build/rules_common.mk
  21.  
  22. all: all-recursive
  23. install: install-recursive
  24.  
  25. distclean-recursive depend-recursive clean-recursive all-recursive install-recursive:
  26.     @otarget=`echo $@|sed s/-recursive//`; \
  27.     list='$(SUBDIRS)'; for i in $$list; do \
  28.         target="$$otarget"; \
  29.         echo "Making $$target in $$i"; \
  30.         if test "$$i" = "."; then \
  31.             ok=yes; \
  32.             target="$$target-p"; \
  33.         fi; \
  34.         (cd $$i && $(MAKE) $$target) || exit 1; \
  35.     done; \
  36.     if test "$$otarget" = "all" && test -z '$(targets)'; then ok=yes; fi; \
  37.     if test "$$ok" != "yes"; then $(MAKE) "$$otarget-p" || exit 1; fi
  38.  
  39. all-p: $(targets)
  40. install-p: $(targets) $(install_targets)
  41. distclean-p depend-p clean-p:
  42.  
  43. depend: depend-recursive
  44.     @echo $(top_srcdir) $(top_builddir) $(srcdir) $(CPP) $(INCLUDES) $(EXTRA_INCLUDES) $(DEFS) $(CPPFLAGS) $(srcdir)/*.c *.c | $(AWK) -f $(top_srcdir)/build/mkdep.awk > $(builddir)/.deps || true
  45.  
  46. clean: clean-recursive clean-x
  47.  
  48. clean-x:
  49.     rm -f $(targets) *.lo *.slo *.la *.o $(CLEANFILES)
  50.     rm -rf .libs
  51.  
  52. distclean: distclean-recursive clean-x
  53.     rm -f config.cache config.log config.status config_vars.mk libtool \
  54.     php_config.h stamp-h Makefile build-defs.h php4.spec libphp4.module
  55.  
  56. test: $(top_builddir)/php
  57.     @TOP_BUILDDIR=$(top_builddir) TOP_SRCDIR=$(top_srcdir) $(top_builddir)/php -q $(top_srcdir)/run-tests.php $(srcdir)
  58.  
  59. include $(builddir)/.deps
  60.  
  61. .PHONY: all-recursive clean-recursive install-recursive \
  62. $(install_targets) install all clean depend depend-recursive shared \
  63. distclean-recursive distclean clean-x all-p install-p distclean-p \
  64. depend-p clean-p
  65.