Logo AND Algorithmique Numérique Distribuée

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