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.
21 ## Some of the targets will only work on my machine ;)
24 release: distcheck remote debian publish
27 make -C ~/CVSIMPORT/pkg-grid/gras maintainerclean
28 cp @PACKAGE@-@VERSION@.tar.gz ~/CVSIMPORT/pkg-grid/gras
29 make -C ~/CVSIMPORT/pkg-grid/gras deb check
33 @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----"
34 cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/gras/dl
35 make -C public_html publish
38 @ver=`dpkg-parsechangelog -lChangeLog| egrep '^Version: ' | sed 's/Version: //'`;\
41 echo "A new version of GRAS is available. Here is the changelog:";\
43 dpkg-parsechangelog -lChangeLog ;\
45 echo "It is available from the official website:";\
46 echo " http://grail.sdsc.edu/simgrid/";\
47 echo;echo "Cheers, Mt.") | \
49 -a "From: Martin.Quinson@ens-lyon.fr" \
50 -s "New version of GRAS ($$ver)" \
51 martin.quinson@ens-lyon.fr,arnaud.legrand@ens-lyon.fr
55 splint `find src examples -name '*.c'` +matchanyintegral -warnposix +boolint -Inws_portability/Include/ -Isrc/
58 ## Cruft for remote compilation
61 MACHINES ?= valnure.cs.ucsb.edu sperm.cs.ucsb.edu basalt.cs.ucsb.edu \
62 graal.ens-lyon.fr allo-psmn.ens-lyon.fr \
65 # ACTION: What to do there
67 # - clean: erase any previously existing source tree and
69 # - touch: touch every file of the source tree to deal with
70 # clock brokenness. May help, may harm.
71 # - config: launch configure
72 # - compile: run 'make'
73 # - install: run 'make install'
74 # - check: run 'make check'
77 ACTION ?= clean untar config compile check
79 REMOTE_PREFIX ?='${HOME}/gras'
81 remote: @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker
82 @echo;echo "----[ Recompile the package on remote hosts ]----"
83 @test -e buildlogs/@PACKAGE@-@VERSION@ || mkdir -p buildlogs/@PACKAGE@-@VERSION@
85 for site in $(MACHINES) ; do \
86 machine=`echo $$site |sed 's/^\([^%]*\)%.*$$/\1/'`;\
87 machine2=`echo $$site |sed 's/^\([^%]*\)%\(.*\)$$/\2/'`;\
88 cmd="\"sh -c 'env REMOTE_PREFIX=$(REMOTE_PREFIX) $(REMOTE_PREFIX)/src/compile-remote-worker $(ACTION) 2>&1'\"";\
89 if echo $$site | grep '%' >/dev/null ; then \
90 echo "----[ Compile on $$machine2 (behide $$machine) ]----";\
93 echo "----[ Compile on $$machine ]----";\
96 echo "-- Copy the data over"; \
97 scp @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker \
98 $$machine:$(REMOTE_PREFIX)/src;\
100 echo "-- Compiling... (the output gets into buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; \
101 if echo $$site | grep '%' >/dev/null ; then \
102 if ssh -CA $$machine "env REMOTE_PREFIX=$(REMOTE_PREFIX) ssh -A $$machine2 $$cmd" 2>&1 > buildlogs/@PACKAGE@-@VERSION@/$$site.log;\
103 then echo "Sucessful"; else failed=1;echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \
105 if ssh -CA $$machine "eval $$cmd" 2>&1 > buildlogs/@PACKAGE@-@VERSION@/$$site.log ;\
106 then echo "Sucessful"; else failed=1;echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \