SF.net SVN: gar:[23788] csw/mgar/pkg/openssl1/trunk/Makefile
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Sat Jun 14 14:35:58 CEST 2014
Revision: 23788
http://sourceforge.net/p/gar/code/23788
Author: chninkel
Date: 2014-06-14 12:35:55 +0000 (Sat, 14 Jun 2014)
Log Message:
-----------
openssl1/trunk: improve custom targets
Modified Paths:
--------------
csw/mgar/pkg/openssl1/trunk/Makefile
Modified: csw/mgar/pkg/openssl1/trunk/Makefile
===================================================================
--- csw/mgar/pkg/openssl1/trunk/Makefile 2014-06-11 14:57:20 UTC (rev 23787)
+++ csw/mgar/pkg/openssl1/trunk/Makefile 2014-06-14 12:35:55 UTC (rev 23788)
@@ -326,12 +326,30 @@
NUM_CPUS := $(shell psrinfo | wc -l | awk '{ print $$1 }')
package-fast:
- PARALLELMODULATIONS=1 PARALLELMFLAGS="--jobs=$(NUM_CPUS) --load-average=$(NUM_CPUS)" $(MAKE) package
+ PARALLELMODULATIONS=1 PARALLELMFLAGS="-j" $(MAKE) package
+ #PARALLELMODULATIONS=1 PARALLELMFLAGS="--jobs=$(NUM_CPUS)" $(MAKE) package
+ #PARALLELMODULATIONS=1 PARALLELMFLAGS="--jobs=$(NUM_CPUS) --load-average=$(NUM_CPUS)" $(MAKE) package
platforms-fast:
- mkdir -p work
- trap "kill -9 `cat $(foreach P,$(PACKAGING_PLATFORMS),$(WORKROOTDIR)/build-$(PACKAGING_HOST_$P).pid) 2>/dev/null`; stty sane" INT; \
+ @mkdir -p work
+ @echo
+ @echo "Building on all hosts in parallel. Please see the individual logfiles for details:";$(foreach P,$(_PACKAGING_PLATFORMS),echo "- $P: work/build-$(PACKAGING_HOST_$P).log";)
+ @echo
+ @trap "cat $(foreach P,$(_PACKAGING_PLATFORMS),work/build-$(PACKAGING_HOST_$P).pid) 2>/dev/null | xargs -L 1 pkill -9 -P &>/dev/null; \
+ stty sane" INT; \
$(foreach P,$(_PACKAGING_PLATFORMS),\
- ($(SSH) -t $(PACKAGING_HOST_$P) "$(foreach V,$(_PROPAGATE_ENV),$(if $($V),$V=\"$($V)\")) $(MAKE) -I $(GARDIR) -C $(CURDIR) $(_PASS_GAR_ENV) GAR_PLATFORM=$P package-fast" >work/build-$(PACKAGING_HOST_$P).log 2>&1; echo $$? >work/build-$(PACKAGING_HOST_$P).ret ) & echo $$! >work/build-$(PACKAGING_HOST_$P).pid; ) wait
- stty sane
+ ( $(SSH) -t $(PACKAGING_HOST_$P) "$(foreach V,$(_PROPAGATE_ENV),$(if $($V),$V=\"$($V)\")) $(MAKE) -I $(GARDIR) -C $(CURDIR) $(_PASS_GAR_ENV) GAR_PLATFORM=$P package-fast" >work/build-$(PACKAGING_HOST_$P).log 2>&1; echo $$? >work/build-$(PACKAGING_HOST_$P).ret ) & \
+ echo $$! >work/build-$(PACKAGING_HOST_$P).pid; ) wait; stty sane; trap - INT
+ @$(foreach P,$(_PACKAGING_PLATFORMS),if [ "`cat work/build-$(PACKAGING_HOST_$P).ret`" -ne 0 ]; then \
+ FAILED=1; \
+ echo "Build error on host $(PACKAGING_HOST_$P). For details, please see"; \
+ echo " work/build-$(PACKAGING_HOST_$P).log"; \
+ echo "Return code: `cat work/build-$(PACKAGING_HOST_$P).ret`"; \
+ echo ; \
+ fi;) if [ $${FAILED} -eq 1 ]; then \
+ exit 2; \
+ fi
+ @echo
+ @echo "Calling the standard platforms target to make sure everything is ok..."
+ @echo
$(MAKE) platforms
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list