Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use proper timer; allow several timed sections per file (ie, use the 'line' argument...
[simgrid.git] / Makefile.am
1 SUBDIRS= include src tools examples testsuite doc
2 DISTCLEANFILES =  *~  
3
4 ACLOCAL = aclocal-1.9 -I acmacro
5 AUTOMAKE_OPTIONS = gnu
6 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
7
8 EXTRA_DIST = bootstrap COPYING INSTALL NEWS README README.IEEE TODO AUTHORS ChangeLog \
9         acmacro/aci.m4 \
10         tools/gras-check-arch   tools/graspe-slave.in \
11         tools/MSG_visualization tools/platform_generation
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 --copy-links --verbose --archive --cvs-exclude --compress --delete \
60         --delete-excluded --rsh=ssh -I \
61         doc/html/ scm.gforge.inria.fr:/var/lib/gforge/chroot/home/groups/simgrid/htdocs/
62
63 mail:
64          @ver=`dpkg-parsechangelog -lChangeLog | egrep '^Version: ' | sed 's/Version: //'`;\
65           (echo "Hello," ; \
66            echo; \
67            echo "A new version of SimGrid is available. Here is the changelog:";\
68            echo;echo;\
69            dpkg-parsechangelog -lChangeLog ;\
70            echo;echo; \
71            echo "It is available from the official website:";\
72            echo "  http://grail.sdsc.edu/simgrid/";\
73            echo;echo "Cheers, the SimGrid team.") | \
74           mail -e \
75                -a "From: Arnaud.Legrand@imag.fr" \
76                -s "New version of GRAS ($$ver)" \
77                simgrid2-users@listes.ens-lyon.fr
78
79 splint:
80         splint `make dist-files | grep -v $(PWD) | egrep '\.[ch]$$' |sort -u` \
81                +matchanyintegral -warnposix +boolint \
82                +show-summary +stats\
83                -Iinclude -Isrc/include -Isrc/base -Isrc
84 .PHONY: splint sync-gforge
85 ##
86 ## Cruft for remote compilation
87 ##
88
89 remote: 
90         @tools/graspe-master
91
92 endif
93
94 include $(top_srcdir)/acmacro/dist-files.mk