Remove two more generated files from version control.
[autoconf/tsuna.git] / Makefile.am
bloba74088bca7e3937fa2e36c11b11468675e71e92b
1 # Make Autoconf.
3 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free
4 # Software Foundation, Inc.
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 3 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
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 # bin/ must be run first, as it builds executables needed for tests.
20 # autom4te uses autotest.m4f to generate `testsuite', so build tests last.
21 SUBDIRS = bin . lib man doc tests
23 ACLOCAL_AMFLAGS = -I m4
25 EXTRA_DIST = ChangeLog.0 ChangeLog.1 ChangeLog.2 \
26              BUGS \
27              GNUmakefile Makefile.maint Makefile.cfg \
28              config/announce-gen config/prev-version.txt
30 MAINTAINERCLEANFILES = $(srcdir)/INSTALL
32 ## -------------------- ##
33 ## Forwarding targets.  ##
34 ## -------------------- ##
36 html:
37         cd doc && $(MAKE) $(AM_MAKEFLAGS) $@
39 .PHONY: html
42 ## --------- ##
43 ## INSTALL.  ##
44 ## --------- ##
46 pkgdata_DATA = $(srcdir)/INSTALL
47 AM_MAKEINFOFLAGS = --no-headers --no-validate --no-split
48 $(srcdir)/INSTALL: $(top_srcdir)/doc/install.texi
49         $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -o $@ \
50           $(top_srcdir)/doc/install.texi
52 ## maintainer-check ##
53 maintainer-check: maintainer-check-tests
54 maintainer-check-tests:
55         cd tests && make maintainer-check
58 ## ----------------------------------- ##
59 ## Updating Perl files from Automake.  ##
60 ## ----------------------------------- ##
62 WGET = wget
63 WGETFLAGS = -C off
65 ## Fetch the latest versions of files we care about.
66 automake_cvsweb = \
67    http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/automake
68 automake_cvsargs = \
69    'content-type=text/plain&cvsroot=automake'
70 autom4te_files = \
71   Autom4te/Configure_ac.pm \
72   Autom4te/Channels.pm \
73   Autom4te/FileUtils.pm \
74   Autom4te/Struct.pm \
75   Autom4te/XFile.pm
77 autom4te-update:
78         rm -f -r Fetchdir > /dev/null 2>&1
79         mkdir -p Fetchdir/Autom4te
80         for file in $(autom4te_files); do \
81           $(WGET) $(WGET_FLAGS) \
82             "$(automake_cvsweb)/lib/$file?$(automake_cvsargs)" \
83             -O "Fetchdir/$$file" || exit; \
84         done
85         perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm
86         for file in $(autom4te_files); do \
87           $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file || exit; \
88         done
90 # Arrange so that .version appears only in distribution tarballs,
91 # never in a checked-out repository.
92 dist-hook:
93         echo $(VERSION) > $(distdir)/.version