Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
document the gras_datadesc_t datatype
[simgrid.git] / Makefile.am
1 SUBDIRS= doc src 
2 DISTCLEANFILES =  *~  
3
4 ACLOCAL = aclocal -I acmacro -I /usr/share/aclocal/gnome2-macros
5 AUTOMAKE_OPTIONS = gnu
6
7 EXTRA_DIST = bootstrap COPYING INSTALL NEWS README README.IEEE TODO AUTHORS ChangeLog\
8         acmacro/aci.m4 \
9         tools/gras-check-arch   tools/compile-remote-worker.in
10
11 TAGS: 
12         etags `find . -name "*.[ch]"`
13
14 tags: TAGS
15
16
17
18 if MAINTAINER_MODE
19 ##
20 ## The following is only interesting for me, I guess
21 ##
22
23 publish: dist
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/
32
33 mail:
34          @ver=`dpkg-parsechangelog -lChangeLog| egrep '^Version: ' | sed 's/Version: //'`;\
35           (echo "Hello," ; \
36            echo; \
37            echo "A new version of GRAS is available. Here is the changelog:";\
38            echo;echo;\
39            dpkg-parsechangelog -lChangeLog ;\
40            echo;echo; \
41            echo "It is available from the official website:";\
42            echo "  http://grail.sdsc.edu/simgrid/";\
43            echo;echo "Cheers, Mt.") | \
44           mail -e \
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
48
49
50 splint:
51         splint `find src examples -name '*.c'` +matchanyintegral -warnposix +boolint -Inws_portability/Include/ -Isrc/
52
53 ##
54 ## Cruft for remote compilation
55 ##
56
57 MACHINES ?= valnure.cs.ucsb.edu sperm.cs.ucsb.edu     basalt.cs.ucsb.edu \
58             graal.ens-lyon.fr   allo-psmn.ens-lyon.fr \
59             nala.cs.utk.edu
60
61 # ACTION: What to do there
62 # possible values:
63 #  - clean:   erase any previously existing source tree and 
64 #             open the new open
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'
71 #
72 # default value:
73 ACTION ?= clean untar config compile check
74
75 REMOTE_PREFIX ?='${HOME}/gras'
76
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) ]----";\
86            else \
87              machine=$$site;\
88              echo "----[ Compile on $$machine ]----";\
89            fi;\
90            \
91            echo "-- Copy the data over"; \
92            scp @PACKAGE@-@VERSION@.tar.gz tools/compile-remote-worker \
93                $$machine:$(REMOTE_PREFIX)/src;\
94            \
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; \
99            else \
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; \
102            fi;\
103         done
104
105 endif