1 SUBDIRS= include src tools examples testsuite doc
4 ACLOCAL = aclocal-1.9 -I acmacro
6 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
8 EXTRA_DIST = bootstrap COPYING INSTALL NEWS README README.IEEE TODO AUTHORS ChangeLog \
10 tools/gras-check-arch tools/compile-remote-worker.in \
11 tools/MSG_visualization tools/platform_generation \
12 tools/doxygen/index_create.pl
14 SOURCE_FILES = $(shell find . -name "*.[ch]")
16 @etags $(SOURCE_FILES)
24 ## The following is only interesting for me, I guess.
25 ## Some of the targets will only work on my machine ;)
28 release: distcheck remote debian publish
31 make -C ~/CVSIMPORT/pkg-grid/gras maintainerclean
32 cp @PACKAGE@-@VERSION@.tar.gz ~/CVSIMPORT/pkg-grid/gras/
33 cp @PACKAGE@-@VERSION@.tar.gz ~/CVSIMPORT/pkg-grid/gras/@PACKAGE@_@VERSION@.orig.tar.gz
34 make -C ~/CVSIMPORT/pkg-grid/gras deb check
38 @echo "----[ Put the documentation on the local filesystem ]----"
39 rm -rf ~/public_html/gras/doc
40 mkdir ~/public_html/gras/doc
41 cp -r doc/html ~/public_html/gras/doc
42 @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----"
43 cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/gras/dl
44 @echo "----[ Sync remote host ]----"
45 make -C public_html publish
48 @echo "----[ Put the tarball @VERSION@ on gcl ]----"
49 scp @PACKAGE@-@VERSION@.tar.gz gcl.ucsd.edu:/home/www/simgrid/dl/
50 scp -r doc/html/* gcl.ucsd.edu:/home/www/simgrid/
51 scp ChangeLog gcl.ucsd.edu:/home/www/simgrid/dl/ChangeLog
52 @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----"
53 cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/simgrid2
54 cp -r doc/html ~/public_html/simgrid2/doc/
55 cp ChangeLog ~/public_html/simgrid2/
59 @ver=`dpkg-parsechangelog -lChangeLog | egrep '^Version: ' | sed 's/Version: //'`;\
62 echo "A new version of SimGrid is available. Here is the changelog:";\
64 dpkg-parsechangelog -lChangeLog ;\
66 echo "It is available from the official website:";\
67 echo " http://grail.sdsc.edu/simgrid/";\
68 echo;echo "Cheers, the SimGrid team.") | \
70 -a "From: Arnaud.Legrand@imag.fr" \
71 -s "New version of GRAS ($$ver)" \
72 simgrid2-users@listes.ens-lyon.fr
75 splint `make dist-files | grep -v $(PWD) | egrep '\.[ch]$$' |sort -u` \
76 +matchanyintegral -warnposix +boolint \
78 -Iinclude -Isrc/include -Isrc/base -Isrc
81 ## Cruft for remote compilation
84 MACHINES ?= graal.ens-lyon.fr allo-psmn.ens-lyon.fr \
85 valnure.cs.ucsb.edu sperm.cs.ucsb.edu basalt.cs.ucsb.edu \
88 # ACTIONS: What to do there
90 # - clean: erase any previously existing source tree and
92 # - untar: open the tarball which was just copied
93 # - touch: touch every file of the source tree to deal with
94 # clock brokenness. May help, may harm.
95 # - config: launch configure
96 # - compile: run 'make'
97 # - install: run 'make install'
98 # - check: run 'make check'
101 ACTIONS ?= clean untar config compile check
103 REMOTE_PREFIX ?='simgrid'
105 remote: @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker
106 @echo;echo "----[ Recompile the package on remote hosts ]----"
107 @test -e @srcdir@/buildlogs/@PACKAGE@-@VERSION@ || mkdir -p @srcdir@/buildlogs/@PACKAGE@-@VERSION@
109 for site in $(MACHINES) ; do \
110 machine=`echo $$site |sed 's/^\([^%]*\)%.*$$/\1/'`;\
111 machine2=`echo $$site |sed 's/^\([^%]*\)%\(.*\)$$/\2/'`;\
112 cmd="\"sh -c 'env REMOTE_PREFIX=$(REMOTE_PREFIX) $(REMOTE_PREFIX)/src/compile-remote-worker $(ACTIONS) 2>&1'\"";\
113 if echo $$site | grep '%' >/dev/null ; then \
114 echo "----[ Compile on $$machine2 (behind $$machine) ]----";\
117 echo "----[ Compile on $$machine ]----";\
120 echo "-- Copy the data over"; \
121 scp @srcdir@/@PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker \
122 $$machine:$(REMOTE_PREFIX)/src;\
124 echo "-- Compiling... (the output gets into @srcdir@/buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; \
125 if echo $$site | grep '%' >/dev/null ; then \
126 if ssh $$machine "env REMOTE_PREFIX=$(REMOTE_PREFIX) ssh -A $$machine2 $$cmd" 2>&1 > @srcdir@/buildlogs/@PACKAGE@-@VERSION@/$$site.log;\
127 then echo "Sucessful"; else failed=1;echo "Failed (check @srcdir@/buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \
129 if ssh $$machine "eval $$cmd" 2>&1 > @srcdir@/buildlogs/@PACKAGE@-@VERSION@/$$site.log ;\
130 then echo "Sucessful"; else failed=1;echo "Failed (check @srcdir@/buildlogs/@PACKAGE@-@VERSION@/$$site.log)"; fi;echo; \
133 @srcdir@/tools/compile-stats;\
138 include $(top_srcdir)/acmacro/dist-files.mk