Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Using brand new logo.
[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 tools/platform_generation
11
12 SOURCE_FILES = $(shell find . -name "*.[ch]")
13 TAGS: $(SOURCE_FILES)
14         @etags $(SOURCE_FILES)
15
16 tags: TAGS
17
18
19
20 if MAINTAINER_MODE
21 ##
22 ## The following is only interesting for me, I guess. 
23 ## Some of the targets will only work on my machine ;)
24 ##
25
26 release: distcheck remote debian publish
27
28 debian: dist
29         make -C ~/CVSIMPORT/pkg-grid/gras maintainerclean
30         cp @PACKAGE@-@VERSION@.tar.gz ~/CVSIMPORT/pkg-grid/gras/
31         cp @PACKAGE@-@VERSION@.tar.gz ~/CVSIMPORT/pkg-grid/gras/@PACKAGE@_@VERSION@.orig.tar.gz
32         make -C ~/CVSIMPORT/pkg-grid/gras deb check
33         dput local *.changes
34
35 publish-old: dist
36          @echo "----[ Put the documentation on the local filesystem ]----"
37          rm -rf ~/public_html/gras/doc
38          mkdir ~/public_html/gras/doc
39          cp -r doc/html ~/public_html/gras/doc
40          @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----"
41          cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/gras/dl
42          @echo "----[ Sync remote host ]----"
43          make -C public_html publish
44
45 publish: dist
46          @echo "----[ Put the tarball @VERSION@ on gforge ]----"
47 #        scp @PACKAGE@-@VERSION@.tar.gz gcl.ucsd.edu:/home/www/simgrid/dl/
48 #        scp -r doc/html/* gcl.ucsd.edu:/home/www/simgrid/
49 #        scp -r doc/html/* scm.gforge.inria.fr:/var/lib/gforge/chroot/home/groups/simgrid/htdocs/
50          scp ChangeLog gcl.ucsd.edu:/home/www/simgrid/dl/ChangeLog
51          @echo "----[ Put the tarball @VERSION@ on the local filesystem ]----"
52          cp @PACKAGE@-@VERSION@.tar.gz ~/public_html/simgrid2
53          cp -r doc/html ~/public_html/simgrid2/doc/
54          cp ChangeLog ~/public_html/simgrid2/
55          make -C ~/public_html
56
57 sync-gforge: 
58         rsync --verbose --cvs-exclude --compress --delete --delete-excluded --rsh=ssh --ignore-times \
59             --recursive --links --perms --times --omit-dir-times  \
60             doc/html/ scm.gforge.inria.fr:/var/lib/gforge/chroot/home/groups/simgrid/htdocs/doc/ || true
61         scp doc/index.php scm.gforge.inria.fr:/var/lib/gforge/chroot/home/groups/simgrid/htdocs/
62         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/
63         ssh scm.gforge.inria.fr "chgrp -R simgrid /var/lib/gforge/chroot/home/groups/simgrid/htdocs/"
64         ssh scm.gforge.inria.fr "chmod g+rw -R /var/lib/gforge/chroot/home/groups/simgrid/htdocs/* || true"
65
66 mail:
67          @ver=`dpkg-parsechangelog -lChangeLog | egrep '^Version: ' | sed 's/Version: //'`;\
68           (echo "Hello," ; \
69            echo; \
70            echo "A new version of SimGrid is available. Here is the changelog:";\
71            echo;echo;\
72            dpkg-parsechangelog -lChangeLog ;\
73            echo;echo; \
74            echo "It is available from the official website:";\
75            echo "  http://simgrid.gforge.inria.fr";\
76            echo;echo "Cheers, the SimGrid team.") | \
77           mail -e \
78                -a "From: Arnaud.Legrand@imag.fr" \
79                -s "New version of SimGrid ($$ver)" \
80                simgrid-user@lists.gforge.inria.fr
81
82 splint:
83         splint `make dist-files | grep -v $(PWD) | egrep '\.[ch]$$' |sort -u` \
84                +matchanyintegral -warnposix +boolint \
85                +show-summary +stats\
86                -Iinclude -Isrc/include -Isrc/base -Isrc
87 .PHONY: splint sync-gforge
88 ##
89 ## Cruft for remote compilation
90 ##
91
92 remote: 
93         @$(top_srcdir)/tools/graspe-master
94
95 endif
96
97 include $(top_srcdir)/acmacro/dist-files.mk