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 documentation on the local filesystem ]----"
34 rm -rf ~/public_html/gras/doc
35 mkdir ~/public_html/gras/doc
36 cp -r doc/html ~/public_html/gras/doc
37 @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----"
38 cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/gras/dl
39 @echo "----[ Sync remote host ]----"
40 make -C public_html publish
43 @ver=`dpkg-parsechangelog -lChangeLog| egrep '^Version: ' | sed 's/Version: //'`;\
46 echo "A new version of GRAS is available. Here is the changelog:";\
48 dpkg-parsechangelog -lChangeLog ;\
50 echo "It is available from the official website:";\
51 echo " http://grail.sdsc.edu/simgrid/";\
52 echo;echo "Cheers, Mt.") | \
54 -a "From: Martin.Quinson@ens-lyon.fr" \
55 -s "New version of GRAS ($$ver)" \
56 martin.quinson@ens-lyon.fr,arnaud.legrand@ens-lyon.fr
60 splint `find src -name '*.c' | grep -v RL | grep -v SG` +matchanyintegral -warnposix +boolint -Inws_portability/Include/ -Isrc/include -Isrc/base -Isrc
63 ## Cruft for remote compilation
66 MACHINES ?= valnure.cs.ucsb.edu sperm.cs.ucsb.edu basalt.cs.ucsb.edu \
67 graal.ens-lyon.fr allo-psmn.ens-lyon.fr \
70 # ACTION: What to do there
72 # - clean: erase any previously existing source tree and
74 # - touch: touch every file of the source tree to deal with
75 # clock brokenness. May help, may harm.
76 # - config: launch configure
77 # - compile: run 'make'
78 # - install: run 'make install'
79 # - check: run 'make check'
82 ACTION ?= clean untar config compile check
84 REMOTE_PREFIX ?='${HOME}/gras'
86 remote: @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker
87 @echo;echo "----[ Recompile the package on remote hosts ]----"
88 @test -e buildlogs/@PACKAGE@-@VERSION@ || mkdir -p buildlogs/@PACKAGE@-@VERSION@
90 for site in $(MACHINES) ; do \
91 machine=`echo $$site |sed 's/^\([^%]*\)%.*$$/\1/'`;\
92 machine2=`echo $$site |sed 's/^\([^%]*\)%\(.*\)$$/\2/'`;\
93 cmd="\"sh -c 'env REMOTE_PREFIX=$(REMOTE_PREFIX) $(REMOTE_PREFIX)/src/compile-remote-worker $(ACTION) 2>&1'\"";\
94 if echo $$site | grep '%' >/dev/null ; then \
95 echo "----[ Compile on $$machine2 (behide $$machine) ]----";\
98 echo "----[ Compile on $$machine ]----";\
101 echo "-- Copy the data over"; \
102 scp @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker \
103 $$machine:$(REMOTE_PREFIX)/src;\
105 echo "-- Compiling... (the output gets into buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; \
106 if echo $$site | grep '%' >/dev/null ; then \
107 if ssh -CA $$machine "env REMOTE_PREFIX=$(REMOTE_PREFIX) ssh -A $$machine2 $$cmd" 2>&1 > buildlogs/@PACKAGE@-@VERSION@/$$site.log;\
108 then echo "Sucessful"; else failed=1;echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \
110 if ssh -CA $$machine "eval $$cmd" 2>&1 > buildlogs/@PACKAGE@-@VERSION@/$$site.log ;\
111 then echo "Sucessful"; else failed=1;echo "Failed (check buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \
114 tools/compile-stats;\