Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an ad at the beginning of the main page
[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 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/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         ssh scm.gforge.inria.fr "chgrp -R simgrid /var/lib/gforge/chroot/home/groups/simgrid/htdocs/"
63         ssh scm.gforge.inria.fr "chmod g+rw -R /var/lib/gforge/chroot/home/groups/simgrid/htdocs/"
64
65 mail:
66          @ver=`dpkg-parsechangelog -lChangeLog | egrep '^Version: ' | sed 's/Version: //'`;\
67           (echo "Hello," ; \
68            echo; \
69            echo "A new version of SimGrid is available. Here is the changelog:";\
70            echo;echo;\
71            dpkg-parsechangelog -lChangeLog ;\
72            echo;echo; \
73            echo "It is available from the official website:";\
74            echo "  http://simgrid.gforge.inria.fr";\
75            echo;echo "Cheers, the SimGrid team.") | \
76           mail -e \
77                -a "From: Arnaud.Legrand@imag.fr" \
78                -s "New version of SimGrid ($$ver)" \
79                simgrid-user@lists.gforge.inria.fr
80
81 splint:
82         splint `make dist-files | grep -v $(PWD) | egrep '\.[ch]$$' |sort -u` \
83                +matchanyintegral -warnposix +boolint \
84                +show-summary +stats\
85                -Iinclude -Isrc/include -Isrc/base -Isrc
86 .PHONY: splint sync-gforge
87 ##
88 ## Cruft for remote compilation
89 ##
90
91 remote: 
92         @tools/graspe-master
93
94 endif
95
96 include $(top_srcdir)/acmacro/dist-files.mk