Fix AS_EXIT for FreeBSD sh.
[autoconf.git] / cfg.mk
blob07da74876ac77d8875f0592bbc928eec7847e16d
1 # Customize maint.mk for Autoconf. -*- Makefile -*-
2 # Copyright (C) 2003, 2004, 2006, 2008, 2009 Free Software Foundation,
3 # 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 # Version management.
27 announce_gen = $(srcdir)/build-aux/announce-gen
29 # Use alpha.gnu.org for alpha and beta releases.
30 # Use ftp.gnu.org for major releases.
31 gnu_ftp_host-alpha = alpha.gnu.org
32 gnu_ftp_host-beta = alpha.gnu.org
33 gnu_ftp_host-major = ftp.gnu.org
34 gnu_rel_host = $(gnu_ftp_host-$(RELEASE_TYPE))
36 url_dir_list = \
37 ftp://$(gnu_rel_host)/gnu/autoconf
39 # The GnuPG ID of the key used to sign the tarballs.
40 gpg_key_ID = F4850180
42 # The local directory containing the checked-out copy of gnulib used in this
43 # release.
44 gnulib_dir = '$(abs_srcdir)'/../gnulib
46 # Update files from gnulib.
47 .PHONY: fetch gnulib-update autom4te-update
48 fetch: gnulib-update autom4te-update
50 gnulib-update:
51 cp $(gnulib_dir)/build-aux/announce-gen $(srcdir)/build-aux
52 cp $(gnulib_dir)/build-aux/config.guess $(srcdir)/build-aux
53 cp $(gnulib_dir)/build-aux/config.sub $(srcdir)/build-aux
54 cp $(gnulib_dir)/build-aux/elisp-comp $(srcdir)/build-aux
55 cp $(gnulib_dir)/build-aux/gendocs.sh $(srcdir)/build-aux
56 cp $(gnulib_dir)/build-aux/git-version-gen $(srcdir)/build-aux
57 cp $(gnulib_dir)/build-aux/gnupload $(srcdir)/build-aux
58 cp $(gnulib_dir)/build-aux/install-sh $(srcdir)/build-aux
59 cp $(gnulib_dir)/build-aux/mdate-sh $(srcdir)/build-aux
60 cp $(gnulib_dir)/build-aux/missing $(srcdir)/build-aux
61 cp $(gnulib_dir)/build-aux/move-if-change $(srcdir)/build-aux
62 cp $(gnulib_dir)/build-aux/vc-list-files $(srcdir)/build-aux
63 cp $(gnulib_dir)/build-aux/texinfo.tex $(srcdir)/build-aux
64 cp $(gnulib_dir)/doc/fdl.texi $(srcdir)/doc
65 cp $(gnulib_dir)/doc/gendocs_template $(srcdir)/doc
66 cp $(gnulib_dir)/doc/gnu-oids.texi $(srcdir)/doc
67 cp $(gnulib_dir)/doc/make-stds.texi $(srcdir)/doc
68 cp $(gnulib_dir)/doc/standards.texi $(srcdir)/doc
69 cp $(gnulib_dir)/top/GNUmakefile $(srcdir)
71 WGET = wget
72 WGETFLAGS = -C off
74 ## Fetch the latest versions of files we care about.
75 automake_gitweb = \
76 http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;hb=HEAD;
77 autom4te_files = \
78 Autom4te/Configure_ac.pm \
79 Autom4te/Channels.pm \
80 Autom4te/FileUtils.pm \
81 Autom4te/Struct.pm \
82 Autom4te/XFile.pm
84 move_if_change = '$(abs_srcdir)'/build-aux/move-if-change
86 autom4te-update:
87 rm -fr Fetchdir > /dev/null 2>&1
88 mkdir -p Fetchdir/Autom4te
89 for file in $(autom4te_files); do \
90 infile=`echo $$file | sed 's/Autom4te/Automake/g'`; \
91 $(WGET) $(WGET_FLAGS) \
92 "$(automake_gitweb)f=lib/$$infile" \
93 -O "Fetchdir/$$file" || exit; \
94 done
95 perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm
96 for file in $(autom4te_files); do \
97 $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file || exit; \
98 done
99 rm -fr Fetchdir > /dev/null 2>&1
100 @echo
101 @echo "Please avoid committing copyright changes until GPLv3 is sorted"
102 @echo
104 # Tests not to run.
105 local-checks-to-skip ?= \
106 changelog-check sc_unmarked_diagnostics
108 .PHONY: web-manual
109 web-manual:
110 @cd $(srcdir)/doc ; \
111 $(SHELL) ../build-aux/gendocs.sh -o '$(abs_builddir)/doc/manual' \
112 --email $(PACKAGE_BUGREPORT) $(PACKAGE) \
113 "$(PACKAGE_NAME) - Creating Automatic Configuration Scripts"
114 @echo " *** Upload the doc/manual directory to web-cvs."