4 ACLOCAL = aclocal -I acmacro -I /usr/share/aclocal/gnome2-macros
7 EXTRA_DIST = bootstrap COPYING INSTALL NEWS README README.IEEE TODO AUTHORS ChangeLog\
9 tools/gras-check-arch tools/compile-remote-worker.in
12 etags `find . -name "*.[ch]"`
20 ## The following is only interesting for me, I guess
24 @echo "----[ Put the tarball @VERSION@ on gcl ]----"
25 scp @PACKAGE@-@VERSION@.tar.gz gcl.ucsd.edu:/home/www/simgrid/dl/
26 scp -r doc/html/* gcl.ucsd.edu:/home/www/simgrid/
27 scp ChangeLog gcl.ucsd.edu:/home/www/simgrid/dl/
28 @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----"
29 cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/simgrid2
30 cp -r doc/html ~/public_html/simgrid2/doc/
31 cp ChangeLog ~/public_html/simgrid2/
34 @ver=`dpkg-parsechangelog -lChangeLog| egrep '^Version: ' | sed 's/Version: //'`;\
37 echo "A new version of GRAS is available. Here is the changelog:";\
39 dpkg-parsechangelog -lChangeLog ;\
41 echo "It is available from the official website:";\
42 echo " http://grail.sdsc.edu/simgrid/";\
43 echo;echo "Cheers, Mt.") | \
45 -a "From: Martin.Quinson@ens-lyon.fr" \
46 -s "New version of GRAS ($$ver)" \
47 martin.quinson@ens-lyon.fr,arnaud.legrand@ens-lyon.fr
51 splint `find src examples -name '*.c'` +matchanyintegral -warnposix +boolint -Inws_portability/Include/ -Isrc/
54 ## Cruft for remote compilation
57 MACHINES ?= valnure.cs.ucsb.edu sperm.cs.ucsb.edu basalt.cs.ucsb.edu \
58 graal.ens-lyon.fr allo-psmn.ens-lyon.fr \
61 # ACTION: What to do there
63 # - clean: erase any previously existing source tree and
65 # - touch: touch every file of the source tree to deal with
66 # clock brokenness. May help, may harm.
67 # - config: launch configure
68 # - compile: run 'make'
69 # - install: run 'make install'
70 # - check: run 'make check'
73 ACTION ?= clean untar config compile check
75 REMOTE_PREFIX ?='${HOME}/gras'
77 remote: @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker
78 @echo;echo "----[ Recompile the package on remote hosts ]----"
79 @test -e buildlogs/@PACKAGE@-@VERSION@ || mkdir -p buildlogs/@PACKAGE@-@VERSION@
80 @for site in $(MACHINES) ; do \
81 machine=`echo $$site |sed 's/^\([^%]*\)%.*$$/\1/'`;\
82 machine2=`echo $$site |sed 's/^\([^%]*\)%\(.*\)$$/\2/'`;\
83 cmd="\"sh -c 'env REMOTE_PREFIX=$(REMOTE_PREFIX) $(REMOTE_PREFIX)/src/compile-remote-worker $(ACTION) 2>&1'\"";\
84 if echo $$site | grep '%' >/dev/null ; then \
85 echo "----[ Compile on $$machine2 (behide $$machine) ]----";\
88 echo "----[ Compile on $$machine ]----";\
91 echo "-- Copy the data over"; \
92 scp @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker \
93 $$machine:$(REMOTE_PREFIX)/src;\
95 echo "-- Compiling... (the output gets into buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; \
96 if echo $$site | grep '%' >/dev/null ; then \
97 if ssh -CA $$machine "env REMOTE_PREFIX=$(REMOTE_PREFIX) ssh -A $$machine2 $$cmd" 2>&1 > buildlogs/@PACKAGE@-@VERSION@/$$site.log;\
98 then echo "Sucessful"; else echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \
100 if ssh -CA $$machine "eval $$cmd" 2>&1 > buildlogs/@PACKAGE@-@VERSION@/$$site.log ;\
101 then echo "Sucessful"; else echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \