Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A few more tiers file and a convenient perl script for the alnem project. I
[simgrid.git] / Makefile.am
1 SUBDIRS= include src tools testsuite examples doc
2 DISTCLEANFILES =  *~  
3
4 ACLOCAL = aclocal-1.9 -I acmacro
5 AUTOMAKE_OPTIONS = gnu
6
7 EXTRA_DIST = bootstrap COPYING INSTALL NEWS README README.IEEE TODO AUTHORS ChangeLog \
8         acmacro/aci.m4 \
9         tools/graspe-slave.in \
10         tools/MSG_visualization \
11            tools/MSG_visualization/colorize.pl              \
12         tools/platform_generation                           \
13            tools/platform_generation/WAN_3.tiers            \
14            tools/platform_generation/tiers_simgrid.pl       \
15            tools/platform_generation/AlvinMisc.pm           \
16            tools/platform_generation/graph_tbx.pm           \
17            tools/platform_generation/graph_viz.pm           \
18            tools/platform_generation/tiers.pm               \
19            tools/platform_generation/msgplatform2surfxml.pl \
20
21 SOURCE_FILES = $(shell find . -name "*.[ch]")
22 TAGS: $(SOURCE_FILES)
23         @etags $(SOURCE_FILES)
24
25 tags: TAGS
26
27
28
29 if MAINTAINER_MODE
30 ##
31 ## The following is only interesting for me, I guess. 
32 ## Some of the targets will only work on my machine ;)
33 ##
34
35 release: distcheck remote debian publish
36
37 debian: dist
38         make -C ~/CVSIMPORT/pkg-grid/gras maintainerclean
39         cp @PACKAGE@-@VERSION@.tar.gz ~/CVSIMPORT/pkg-grid/gras/
40         cp @PACKAGE@-@VERSION@.tar.gz ~/CVSIMPORT/pkg-grid/gras/@PACKAGE@_@VERSION@.orig.tar.gz
41         make -C ~/CVSIMPORT/pkg-grid/gras deb check
42         dput local *.changes
43
44 publish-old: dist
45          @echo "----[ Put the documentation on the local filesystem ]----"
46          rm -rf ~/public_html/gras/doc
47          mkdir ~/public_html/gras/doc
48          cp -r doc/html ~/public_html/gras/doc
49          @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----"
50          cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/gras/dl
51          @echo "----[ Sync remote host ]----"
52          make -C public_html publish
53
54 publish: dist
55          @echo "----[ Put the tarball @VERSION@ on gforge ]----"
56 #        scp @PACKAGE@-@VERSION@.tar.gz gcl.ucsd.edu:/home/www/simgrid/dl/
57 #        scp -r doc/html/* gcl.ucsd.edu:/home/www/simgrid/
58 #        scp -r doc/html/* scm.gforge.inria.fr:/var/lib/gforge/chroot/home/groups/simgrid/htdocs/
59          scp ChangeLog gcl.ucsd.edu:/home/www/simgrid/dl/ChangeLog
60          @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----"
61          cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/simgrid2
62          cp -r doc/html ~/public_html/simgrid2/doc/
63          cp ChangeLog ~/public_html/simgrid2/
64          make -C ~/public_html
65
66 sync-gforge: 
67         rsync --verbose --cvs-exclude --compress --delete --delete-excluded --rsh=ssh --ignore-times \
68             --recursive --links --perms --times --omit-dir-times  \
69             doc/html/ scm.gforge.inria.fr:/var/lib/gforge/chroot/home/groups/simgrid/htdocs/doc/ || true
70         scp doc/index.php scm.gforge.inria.fr:/var/lib/gforge/chroot/home/groups/simgrid/htdocs/
71         scp doc/simgrid_modules.png doc/simgrid_logo.png doc/simgrid_logo_small.png scm.gforge.inria.fr:/var/lib/gforge/chroot/home/groups/simgrid/htdocs/
72         ssh scm.gforge.inria.fr "chgrp -R simgrid /var/lib/gforge/chroot/home/groups/simgrid/htdocs/"
73         ssh scm.gforge.inria.fr "chmod g+rw -R /var/lib/gforge/chroot/home/groups/simgrid/htdocs/* || true"
74
75 mail:
76          @ver=`dpkg-parsechangelog -lChangeLog | egrep '^Version: ' | sed 's/Version: //'`;\
77           (echo "Hello," ; \
78            echo; \
79            echo "A new version of SimGrid is available. Here is the changelog:";\
80            echo;echo;\
81            dpkg-parsechangelog -lChangeLog ;\
82            echo;echo; \
83            echo "It is available from the official website:";\
84            echo "  http://simgrid.gforge.inria.fr";\
85            echo;echo "Cheers, the SimGrid team.") | \
86           mail -e \
87                -a "From: Arnaud.Legrand@imag.fr" \
88                -s "New version of SimGrid ($$ver)" \
89                simgrid-user@lists.gforge.inria.fr
90
91 splint:
92         splint `make dist-files | grep -v $(PWD) | egrep '\.[ch]$$' |sort -u` \
93                +matchanyintegral -warnposix +boolint \
94                +show-summary +stats\
95                -Iinclude -Isrc/include -Isrc/base -Isrc
96 .PHONY: splint sync-gforge
97 ##
98 ## Cruft for remote compilation
99 ##
100
101 remote: 
102         @$(top_srcdir)/tools/graspe-master
103
104 endif
105
106 include $(top_srcdir)/acmacro/dist-files.mk