1 | ## Process this file with automake to create Makefile.in. -*-Makefile-*-
|
---|
2 |
|
---|
3 | ## Makefile for Autoconf.
|
---|
4 |
|
---|
5 | ## Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free
|
---|
6 | ## Software Foundation, Inc.
|
---|
7 |
|
---|
8 | ## This program is free software; you can redistribute it and/or modify
|
---|
9 | ## it under the terms of the GNU General Public License as published by
|
---|
10 | ## the Free Software Foundation; either version 2, or (at your option)
|
---|
11 | ## any later version.
|
---|
12 |
|
---|
13 | ## This program is distributed in the hope that it will be useful,
|
---|
14 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | ## GNU General Public License for more details.
|
---|
17 |
|
---|
18 | ## You should have received a copy of the GNU General Public License
|
---|
19 | ## along with this program; if not, write to the Free Software
|
---|
20 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
---|
21 | ## 02110-1301, USA.
|
---|
22 |
|
---|
23 | # bin/ must be run first, as it builds executables needed for tests.
|
---|
24 | # autom4te uses autotest.m4f to generate `testsuite', so build tests last.
|
---|
25 | SUBDIRS = bin . lib man doc tests
|
---|
26 |
|
---|
27 | ACLOCAL_AMFLAGS = -I m4
|
---|
28 |
|
---|
29 | EXTRA_DIST = ChangeLog.0 ChangeLog.1 ChangeLog.2 \
|
---|
30 | BUGS \
|
---|
31 | GNUmakefile Makefile.maint Makefile.cfg \
|
---|
32 | config/announce-gen config/prev-version.txt
|
---|
33 |
|
---|
34 | MAINTAINERCLEANFILES = $(srcdir)/INSTALL
|
---|
35 |
|
---|
36 | ## -------------------- ##
|
---|
37 | ## Forwarding targets. ##
|
---|
38 | ## -------------------- ##
|
---|
39 |
|
---|
40 | html:
|
---|
41 | cd doc && $(MAKE) $(AM_MAKEFLAGS) $@
|
---|
42 |
|
---|
43 | .PHONY: html
|
---|
44 |
|
---|
45 |
|
---|
46 | ## --------- ##
|
---|
47 | ## INSTALL. ##
|
---|
48 | ## --------- ##
|
---|
49 |
|
---|
50 | pkgdata_DATA = $(srcdir)/INSTALL
|
---|
51 | AM_MAKEINFOFLAGS = --no-headers --no-validate --no-split
|
---|
52 | $(srcdir)/INSTALL: $(top_srcdir)/doc/install.texi
|
---|
53 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -o $@ \
|
---|
54 | $(top_srcdir)/doc/install.texi
|
---|
55 |
|
---|
56 | ## maintainer-check ##
|
---|
57 | maintainer-check: maintainer-check-tests
|
---|
58 | maintainer-check-tests:
|
---|
59 | cd tests && make maintainer-check
|
---|
60 |
|
---|
61 |
|
---|
62 | ## ----------------------------------- ##
|
---|
63 | ## Updating Perl files from Automake. ##
|
---|
64 | ## ----------------------------------- ##
|
---|
65 |
|
---|
66 | WGET = wget
|
---|
67 | WGETFLAGS = -C off
|
---|
68 |
|
---|
69 | ## Fetch the latest versions of files we care about.
|
---|
70 | automake_cvsweb = \
|
---|
71 | http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/automake
|
---|
72 | automake_cvsargs = \
|
---|
73 | 'content-type=text/plain&cvsroot=automake'
|
---|
74 | autom4te_files = \
|
---|
75 | Autom4te/Configure_ac.pm \
|
---|
76 | Autom4te/Channels.pm \
|
---|
77 | Autom4te/FileUtils.pm \
|
---|
78 | Autom4te/Struct.pm \
|
---|
79 | Autom4te/XFile.pm
|
---|
80 |
|
---|
81 | autom4te-update:
|
---|
82 | rm -f -r Fetchdir > /dev/null 2>&1
|
---|
83 | mkdir -p Fetchdir/Autom4te
|
---|
84 | for file in $(autom4te_files); do \
|
---|
85 | $(WGET) $(WGET_FLAGS) \
|
---|
86 | "$(automake_cvsweb)/lib/$file?$(automake_cvsargs)" \
|
---|
87 | -O "Fetchdir/$$file" || exit; \
|
---|
88 | done
|
---|
89 | perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm
|
---|
90 | for file in $(autom4te_files); do \
|
---|
91 | $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file || exit; \
|
---|
92 | done
|
---|