xref: /netbsd-src/external/gpl3/autoconf/dist/cfg.mk (revision d874e91932377fc40d53f102e48fc3ee6f4fe9de)
1*d874e919Schristos# Customize maint.mk for Autoconf.            -*- Makefile -*-
2*d874e919Schristos# Copyright (C) 2003-2004, 2006, 2008-2012 Free Software Foundation,
3*d874e919Schristos# Inc.
4*d874e919Schristos
5*d874e919Schristos# This program is free software: you can redistribute it and/or modify
6*d874e919Schristos# it under the terms of the GNU General Public License as published by
7*d874e919Schristos# the Free Software Foundation, either version 3 of the License, or
8*d874e919Schristos# (at your option) any later version.
9*d874e919Schristos
10*d874e919Schristos# This program is distributed in the hope that it will be useful,
11*d874e919Schristos# but WITHOUT ANY WARRANTY; without even the implied warranty of
12*d874e919Schristos# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*d874e919Schristos# GNU General Public License for more details.
14*d874e919Schristos
15*d874e919Schristos# You should have received a copy of the GNU General Public License
16*d874e919Schristos# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17*d874e919Schristos
18*d874e919Schristos# This file is '-include'd into GNUmakefile.
19*d874e919Schristos
20*d874e919Schristos# Build with our own versions of these tools, when possible.
21*d874e919Schristosexport PATH = $(shell echo "`pwd`/tests:$$PATH")
22*d874e919Schristos
23*d874e919Schristos# Remove the autoreconf-provided INSTALL, so that we regenerate it.
24*d874e919Schristos_autoreconf = autoreconf -i -v && rm -f INSTALL
25*d874e919Schristos
26*d874e919Schristos# Used in maint.mk's web-manual rule
27*d874e919Schristosmanual_title = Creating Automatic Configuration Scripts
28*d874e919Schristos
29*d874e919Schristos# The local directory containing the checked-out copy of gnulib used
30*d874e919Schristos# in this release (override the default).  The $GNULIB_SRCDIR variable
31*d874e919Schristos# is also honored by the gnulib-provided bootstrap script, so using it
32*d874e919Schristos# here is consistent.
33*d874e919Schristosgnulib_dir = $${GNULIB_SRCDIR-'$(abs_srcdir)'/../gnulib}
34*d874e919Schristos
35*d874e919Schristos# The bootstrap tools (override the default).
36*d874e919Schristosbootstrap-tools = automake
37*d874e919Schristos
38*d874e919Schristos# Set preferred lists for announcements.
39*d874e919Schristos
40*d874e919Schristosannouncement_Cc_ = $(PACKAGE_BUGREPORT), autotools-announce@gnu.org
41*d874e919Schristosannouncement_mail-alpha = autoconf@gnu.org
42*d874e919Schristosannouncement_mail-beta = autoconf@gnu.org
43*d874e919Schristosannouncement_mail-stable = info-gnu@gnu.org, autoconf@gnu.org
44*d874e919Schristosannouncement_mail_headers_ =						\
45*d874e919SchristosTo: $(announcement_mail-$(RELEASE_TYPE))				\
46*d874e919SchristosCC: $(announcement_Cc_)							\
47*d874e919SchristosMail-Followup-To: autoconf@gnu.org
48*d874e919Schristos
49*d874e919Schristos# Update files from gnulib.
50*d874e919Schristos.PHONY: fetch gnulib-update autom4te-update
51*d874e919Schristosfetch: gnulib-update autom4te-update
52*d874e919Schristos
53*d874e919Schristosgnulib-update:
54*d874e919Schristos	cp $(gnulib_dir)/build-aux/announce-gen $(srcdir)/build-aux
55*d874e919Schristos	cp $(gnulib_dir)/build-aux/config.guess $(srcdir)/build-aux
56*d874e919Schristos	cp $(gnulib_dir)/build-aux/config.sub $(srcdir)/build-aux
57*d874e919Schristos	cp $(gnulib_dir)/build-aux/elisp-comp $(srcdir)/build-aux
58*d874e919Schristos	cp $(gnulib_dir)/build-aux/gendocs.sh $(srcdir)/build-aux
59*d874e919Schristos	cp $(gnulib_dir)/build-aux/git-version-gen $(srcdir)/build-aux
60*d874e919Schristos	cp $(gnulib_dir)/build-aux/gitlog-to-changelog $(srcdir)/build-aux
61*d874e919Schristos	cp $(gnulib_dir)/build-aux/gnupload $(srcdir)/build-aux
62*d874e919Schristos	cp $(gnulib_dir)/build-aux/install-sh $(srcdir)/build-aux
63*d874e919Schristos	cp $(gnulib_dir)/build-aux/mdate-sh $(srcdir)/build-aux
64*d874e919Schristos	cp $(gnulib_dir)/build-aux/missing $(srcdir)/build-aux
65*d874e919Schristos	cp $(gnulib_dir)/build-aux/move-if-change $(srcdir)/build-aux
66*d874e919Schristos	cp $(gnulib_dir)/build-aux/texinfo.tex $(srcdir)/build-aux
67*d874e919Schristos	cp $(gnulib_dir)/build-aux/update-copyright $(srcdir)/build-aux
68*d874e919Schristos	cp $(gnulib_dir)/build-aux/useless-if-before-free $(srcdir)/build-aux
69*d874e919Schristos	cp $(gnulib_dir)/build-aux/vc-list-files $(srcdir)/build-aux
70*d874e919Schristos	cp $(gnulib_dir)/doc/fdl.texi $(srcdir)/doc
71*d874e919Schristos	cp $(gnulib_dir)/doc/gendocs_template $(srcdir)/doc
72*d874e919Schristos	cp $(gnulib_dir)/doc/gnu-oids.texi $(srcdir)/doc
73*d874e919Schristos	cp $(gnulib_dir)/doc/make-stds.texi $(srcdir)/doc
74*d874e919Schristos	cp $(gnulib_dir)/doc/standards.texi $(srcdir)/doc
75*d874e919Schristos	cp $(gnulib_dir)/m4/autobuild.m4 $(srcdir)/m4
76*d874e919Schristos	cp $(gnulib_dir)/top/GNUmakefile $(srcdir)
77*d874e919Schristos	cp $(gnulib_dir)/top/maint.mk $(srcdir)
78*d874e919Schristos
79*d874e919SchristosWGET = wget
80*d874e919SchristosWGETFLAGS = -C off
81*d874e919Schristos
82*d874e919Schristos## Fetch the latest versions of files we care about.
83*d874e919Schristosautomake_gitweb = \
84*d874e919Schristos  http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;hb=HEAD;
85*d874e919Schristosautom4te_files = \
86*d874e919Schristos  Autom4te/Configure_ac.pm \
87*d874e919Schristos  Autom4te/Channels.pm \
88*d874e919Schristos  Autom4te/FileUtils.pm \
89*d874e919Schristos  Autom4te/Getopt.pm \
90*d874e919Schristos  Autom4te/XFile.pm
91*d874e919Schristos
92*d874e919Schristosmove_if_change = '$(abs_srcdir)'/build-aux/move-if-change
93*d874e919Schristos
94*d874e919Schristosautom4te-update:
95*d874e919Schristos	rm -fr Fetchdir > /dev/null 2>&1
96*d874e919Schristos	mkdir -p Fetchdir/Autom4te
97*d874e919Schristos	for file in $(autom4te_files); do \
98*d874e919Schristos	  infile=`echo $$file | sed 's/Autom4te/Automake/g'`; \
99*d874e919Schristos	  $(WGET) $(WGET_FLAGS) \
100*d874e919Schristos	    "$(automake_gitweb)f=lib/$$infile" \
101*d874e919Schristos	    -O "Fetchdir/$$file" || exit; \
102*d874e919Schristos	done
103*d874e919Schristos	perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm
104*d874e919Schristos	for file in $(autom4te_files); do \
105*d874e919Schristos	  $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file || exit; \
106*d874e919Schristos	done
107*d874e919Schristos	rm -fr Fetchdir > /dev/null 2>&1
108*d874e919Schristos
109*d874e919Schristos# Tests not to run.
110*d874e919Schristoslocal-checks-to-skip ?= \
111*d874e919Schristos  changelog-check			\
112*d874e919Schristos  sc_GPL_version			\
113*d874e919Schristos  sc_cast_of_alloca_return_value	\
114*d874e919Schristos  sc_m4_quote_check			\
115*d874e919Schristos  sc_makefile_at_at_check		\
116*d874e919Schristos  sc_prohibit_HAVE_MBRTOWC		\
117*d874e919Schristos  sc_prohibit_always-defined_macros	\
118*d874e919Schristos  sc_prohibit_always_true_header_tests	\
119*d874e919Schristos  sc_prohibit_magic_number_exit		\
120*d874e919Schristos  sc_prohibit_stat_st_blocks		\
121*d874e919Schristos  sc_unmarked_diagnostics
122*d874e919Schristos
123*d874e919Schristos
124*d874e919Schristos# Always use shorthand copyrights.
125*d874e919Schristosupdate-copyright-env = \
126*d874e919Schristos  UPDATE_COPYRIGHT_USE_INTERVALS=1 \
127*d874e919Schristos  UPDATE_COPYRIGHT_MAX_LINE_LENGTH=72
128*d874e919Schristos
129*d874e919Schristos# Prevent incorrect NEWS edits.
130*d874e919Schristosold_NEWS_hash = 54ad39275441a2a3fcbe6182da4f84fb
131*d874e919Schristos
132*d874e919Schristosexclude_file_name_regexp--sc_prohibit_undesirable_word_seq = \
133*d874e919Schristos  ^(maint\.mk|build-aux/texinfo\.tex)$$
134*d874e919Schristosexclude_file_name_regexp--sc_prohibit_test_minus_ao = \
135*d874e919Schristos  ^(maint\.mk|doc/autoconf\.texi)$$
136*d874e919Schristosexclude_file_name_regexp--sc_prohibit_atoi_atof = ^doc/autoconf\.texi$$
137*d874e919Schristosexclude_file_name_regexp--sc_useless_cpp_parens = \
138*d874e919Schristos  ^(build-aux/config\.guess|doc/standards\.texi)$$
139*d874e919Schristosexclude_file_name_regexp--sc_trailing_blank = ^build-aux/texinfo\.tex$$
140*d874e919Schristosexclude_file_name_regexp--sc_two_space_separator_in_usage = \
141*d874e919Schristos  ^build-aux/gnupload$$
142