php4-beta | 199912
Date: 12/30/99
- Next message: Sascha Schumann: "[PHP4BETA] cvs: /php4 configure.in"
- Previous message: Sascha Schumann: "[PHP4BETA] cvs: /php4/ext Makefile.in"
- Next in thread: Sascha Schumann: "[PHP4BETA] cvs: /php4/build rules.mk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
sas Thu Dec 30 02:16:14 1999 EDT
Modified files:
/php4/build rules.mk
Log:
Proper protection for GNU make's parallel build
Index: php4/build/rules.mk
diff -u php4/build/rules.mk:1.2 php4/build/rules.mk:1.3
--- php4/build/rules.mk:1.2 Thu Dec 30 00:53:27 1999
+++ php4/build/rules.mk Thu Dec 30 02:15:43 1999
@@ -21,7 +21,7 @@
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
##############################################################################
-# $Id: rules.mk,v 1.2 1999/12/30 05:53:27 sas Exp $
+# $Id: rules.mk,v 1.3 1999/12/30 07:15:43 sas Exp $
#
include $(DEPTH)/config_vars.mk
@@ -73,17 +73,29 @@
$(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
-all: all-recursive $(targets)
+all: all-recursive
+install: install-recursive
distclean-recursive depend-recursive clean-recursive all-recursive install-recursive:
- <email protected>=`echo $@|sed s/-recursive//`; \
- if test '$(NO_RECURSION)' != "$$target"; then \
+ <email protected>=`echo $@|sed s/-recursive//`; \
+ if test '$(NO_RECURSION)' != "$$otarget"; then \
list='$(SUBDIRS)'; for i in $$list; do \
+ target="$$otarget"; \
echo "Making $$target in $$i"; \
- test "$$i" = "." || (cd $$i && $(MAKE) $$target) || exit 1; \
+ if test "$$i" = "."; then \
+ ok=yes; \
+ target="$$target-p"; \
+ fi; \
+ (cd $$i && $(MAKE) $$target) || exit 1; \
done; \
+ test "$otarget" = "all" && test -z '$(targets)' && ok=yes; \
+ test "$ok" = "yes" || $(MAKE) "$$otarget-p" || exit 1; \
fi;
+all-p: $(targets)
+install-p: $(targets) $(install_targets)
+distclean-p depend-p clean-p:
+
depend: depend-recursive
test "`echo *.c`" = '*.c' || perl $(top_srcdir)/build/mkdep.perl $(CPP) $(INCLUDES) *.c > .deps
@@ -96,8 +108,6 @@
distclean: distclean-recursive clean-x
rm -f config.cache config.log config.status config_vars.mk libtool \
php_config.h stamp-h Makefile build-defs.h php4.spec libphp4.module
-
-install: install-recursive $(targets) $(install_targets)
install-modules:
<email protected> -d modules && \
@@ -110,4 +120,5 @@
.PHONY: all-recursive clean-recursive install-recursive \
$(install_targets) install all clean depend depend-recursive shared \
-distclean-recursive distclean clean-x
+distclean-recursive distclean clean-x all-p install-p distclean-p \
+depend-p clean-p
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Sascha Schumann: "[PHP4BETA] cvs: /php4 configure.in"
- Previous message: Sascha Schumann: "[PHP4BETA] cvs: /php4/ext Makefile.in"
- Next in thread: Sascha Schumann: "[PHP4BETA] cvs: /php4/build rules.mk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

