Fixed bootstrap
[distributed.git] / Makefile.am
blob2f8ca5b196ddaae1e456f8f277bf285399edc865
1 ##
2 ## Input file for automake
3 ##
4 ## Copyright (C) 2008 Francesco Salvestrini
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License along
17 ## with this program; if not, write to the Free Software Foundation, Inc.,
18 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 ACLOCAL_AMFLAGS = -I tools/autotools/m4
23 include $(top_srcdir)/Makefile.maint
25 SUBDIRS =                                       \
26         tools                                   \
27         .                                       \
28         src                                     \
29         docs                                    \
30         tests
33 ## User related targets
36 documents:
37         (cd docs && $(MAKE) $(AM_MAKEFLAGS) documents)
40 ## Maintainer related targets
44 ## NOTE:
45 ##     Options listed in AUTOMAKE_OPTIONS variable are applied on a
46 ##     per-`Makefile' basis.
48 AUTOMAKE_OPTIONS = check-news
51 ## NOTE:
52 ##     Makefile.maint is automatically distributed by automake rules
54 EXTRA_DIST =                                                    \
55         BUGS TODO README NEWS COPYING AUTHORS INSTALL THANKS    \
56         bootstrap                                               \
57         configure.ac.in                                         \
58         .todo
61 ## Maintainer related targets
64 TODO: .todo
65         $(DEVTODO) -T || {                      \
66                 rm -f TODO ;                    \
67                 exit 1 ;                        \
68         }
70 dist-hook:
71         $(GITLOG_TO_CHANGELOG) > $(distdir)/ChangeLog || {      \
72                 rm -f ChangeLog ;                               \
73                 exit 1 ;                                        \
74         }
76 HOST = "http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;hb=HEAD;f="
78 update-download:
79         rm -r -f fetch-dir && \
80         mkdir fetch-dir && \
81         $(FETCH) $(HOST)doc/INSTALL fetch-dir/INSTALL && \
82         chmod a+r fetch-dir/INSTALL && \
83         chmod u+w fetch-dir/INSTALL && \
84         $(FETCH) $(HOST)doc/COPYINGv2 fetch-dir/COPYING && \
85         chmod a+r fetch-dir/COPYING && \
86         chmod u+w fetch-dir/COPYING && \
87         mv -f fetch-dir/* ./ || { \
88                 rm -r -f fetch-dir ; \
89                 exit 1 ; \
90         } && \
91         rm -r -f fetch-dir
93 update-local: Makefile update-download
95 maintainer-check-local: