X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dd4517a998739af6fc4a03152eb8f4e6bb17d838..755a65ed491e7a1c5d446902a67d2d0c339b5b09:/Makefile.am diff --git a/Makefile.am b/Makefile.am index ef5992ded5..b93da68a98 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS= doc src +SUBDIRS= src doc DISTCLEANFILES = *~ ACLOCAL = aclocal -I acmacro -I /usr/share/aclocal/gnome2-macros @@ -17,18 +17,22 @@ tags: TAGS if MAINTAINER_MODE ## -## The following is only interesting for me, I guess +## The following is only interesting for me, I guess. +## Some of the targets will only work on my machine ;) ## +release: distcheck remote debian publish + +debian: dist + make -C ~/CVSIMPORT/pkg-grid/gras maintainerclean + cp @PACKAGE@-@VERSION@.tar.gz ~/CVSIMPORT/pkg-grid/gras + make -C ~/CVSIMPORT/pkg-grid/gras deb check + dput local *.changes + publish: dist - @echo "----[ Put the tarball @VERSION@ on gcl ]----" - scp @PACKAGE@-@VERSION@.tar.gz gcl.ucsd.edu:/home/www/simgrid/dl/ - scp -r doc/html/* gcl.ucsd.edu:/home/www/simgrid/ - scp ChangeLog gcl.ucsd.edu:/home/www/simgrid/dl/ @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----" - cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/simgrid2 - cp -r doc/html ~/public_html/simgrid2/doc/ - cp ChangeLog ~/public_html/simgrid2/ + cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/gras/dl + make -C public_html publish mail: @ver=`dpkg-parsechangelog -lChangeLog| egrep '^Version: ' | sed 's/Version: //'`;\ @@ -77,7 +81,8 @@ REMOTE_PREFIX ?='${HOME}/gras' remote: @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker @echo;echo "----[ Recompile the package on remote hosts ]----" @test -e buildlogs/@PACKAGE@-@VERSION@ || mkdir -p buildlogs/@PACKAGE@-@VERSION@ - @for site in $(MACHINES) ; do \ + @failed=0;\ + for site in $(MACHINES) ; do \ machine=`echo $$site |sed 's/^\([^%]*\)%.*$$/\1/'`;\ machine2=`echo $$site |sed 's/^\([^%]*\)%\(.*\)$$/\2/'`;\ cmd="\"sh -c 'env REMOTE_PREFIX=$(REMOTE_PREFIX) $(REMOTE_PREFIX)/src/compile-remote-worker $(ACTION) 2>&1'\"";\ @@ -95,11 +100,12 @@ remote: @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker echo "-- Compiling... (the output gets into buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; \ if echo $$site | grep '%' >/dev/null ; then \ if ssh -CA $$machine "env REMOTE_PREFIX=$(REMOTE_PREFIX) ssh -A $$machine2 $$cmd" 2>&1 > buildlogs/@PACKAGE@-@VERSION@/$$site.log;\ - then echo "Sucessful"; else echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \ + then echo "Sucessful"; else failed=1;echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \ else \ if ssh -CA $$machine "eval $$cmd" 2>&1 > buildlogs/@PACKAGE@-@VERSION@/$$site.log ;\ - then echo "Sucessful"; else echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \ + then echo "Sucessful"; else failed=1;echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \ fi;\ - done + done;\ + exit $$failed endif