Recommend latest m4 release.
[autoconf.git] / cfg.mk
blob4bdf97f948528119c495f2a1bcae329b272c2e6c
1 # Customize maint.mk for Autoconf. -*- Makefile -*-
2 # Copyright (C) 2003, 2004, 2006, 2008, 2009, 2010 Free Software
3 # Foundation, Inc.
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # This file is '-include'd into GNUmakefile.
20 # Build with our own versions of these tools, when possible.
21 export PATH = $(shell echo "`pwd`/tests:$$PATH")
23 # Remove the autoreconf-provided INSTALL, so that we regenerate it.
24 _autoreconf = autoreconf -i -v && rm -f INSTALL
26 # Used in maint.mk's web-manual rule
27 manual_title = Creating Automatic Configuration Scripts
29 # The local directory containing the checked-out copy of gnulib used in this
30 # release (override the default).
31 gnulib_dir = '$(abs_srcdir)'/../gnulib
33 # The bootstrap tools (override the default).
34 bootstrap-tools = automake
36 # Update files from gnulib.
37 .PHONY: fetch gnulib-update autom4te-update
38 fetch: gnulib-update autom4te-update
40 gnulib-update:
41 cp $(gnulib_dir)/build-aux/announce-gen $(srcdir)/build-aux
42 cp $(gnulib_dir)/build-aux/config.guess $(srcdir)/build-aux
43 cp $(gnulib_dir)/build-aux/config.sub $(srcdir)/build-aux
44 cp $(gnulib_dir)/build-aux/elisp-comp $(srcdir)/build-aux
45 cp $(gnulib_dir)/build-aux/gendocs.sh $(srcdir)/build-aux
46 cp $(gnulib_dir)/build-aux/git-version-gen $(srcdir)/build-aux
47 cp $(gnulib_dir)/build-aux/gnupload $(srcdir)/build-aux
48 cp $(gnulib_dir)/build-aux/install-sh $(srcdir)/build-aux
49 cp $(gnulib_dir)/build-aux/mdate-sh $(srcdir)/build-aux
50 cp $(gnulib_dir)/build-aux/missing $(srcdir)/build-aux
51 cp $(gnulib_dir)/build-aux/move-if-change $(srcdir)/build-aux
52 cp $(gnulib_dir)/build-aux/texinfo.tex $(srcdir)/build-aux
53 cp $(gnulib_dir)/build-aux/update-copyright $(srcdir)/build-aux
54 cp $(gnulib_dir)/build-aux/vc-list-files $(srcdir)/build-aux
55 cp $(gnulib_dir)/doc/fdl.texi $(srcdir)/doc
56 cp $(gnulib_dir)/doc/gendocs_template $(srcdir)/doc
57 cp $(gnulib_dir)/doc/gnu-oids.texi $(srcdir)/doc
58 cp $(gnulib_dir)/doc/make-stds.texi $(srcdir)/doc
59 cp $(gnulib_dir)/doc/standards.texi $(srcdir)/doc
60 cp $(gnulib_dir)/top/GNUmakefile $(srcdir)
62 WGET = wget
63 WGETFLAGS = -C off
65 ## Fetch the latest versions of files we care about.
66 automake_gitweb = \
67 http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;hb=HEAD;
68 autom4te_files = \
69 Autom4te/Configure_ac.pm \
70 Autom4te/Channels.pm \
71 Autom4te/FileUtils.pm \
72 Autom4te/Struct.pm \
73 Autom4te/XFile.pm
75 move_if_change = '$(abs_srcdir)'/build-aux/move-if-change
77 autom4te-update:
78 rm -fr Fetchdir > /dev/null 2>&1
79 mkdir -p Fetchdir/Autom4te
80 for file in $(autom4te_files); do \
81 infile=`echo $$file | sed 's/Autom4te/Automake/g'`; \
82 $(WGET) $(WGET_FLAGS) \
83 "$(automake_gitweb)f=lib/$$infile" \
84 -O "Fetchdir/$$file" || exit; \
85 done
86 perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm
87 for file in $(autom4te_files); do \
88 $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file || exit; \
89 done
90 rm -fr Fetchdir > /dev/null 2>&1
92 # Tests not to run.
93 local-checks-to-skip ?= \
94 changelog-check sc_unmarked_diagnostics
96 # Always use longhand copyrights.
97 update-copyright-env = \
98 UPDATE_COPYRIGHT_USE_INTERVALS=0 \
99 UPDATE_COPYRIGHT_MAX_LINE_LENGTH=72