Blame cfg.mk

Packit Service 9646c7
# Customize maint.mk for Autoconf.            -*- Makefile -*-
Packit Service 9646c7
# Copyright (C) 2003-2004, 2006, 2008-2012 Free Software Foundation,
Packit Service 9646c7
# Inc.
Packit Service 9646c7
Packit Service 9646c7
# This program is free software: you can redistribute it and/or modify
Packit Service 9646c7
# it under the terms of the GNU General Public License as published by
Packit Service 9646c7
# the Free Software Foundation, either version 3 of the License, or
Packit Service 9646c7
# (at your option) any later version.
Packit Service 9646c7
Packit Service 9646c7
# This program is distributed in the hope that it will be useful,
Packit Service 9646c7
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 9646c7
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 9646c7
# GNU General Public License for more details.
Packit Service 9646c7
Packit Service 9646c7
# You should have received a copy of the GNU General Public License
Packit Service 9646c7
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit Service 9646c7
Packit Service 9646c7
# This file is '-include'd into GNUmakefile.
Packit Service 9646c7
Packit Service 9646c7
# Build with our own versions of these tools, when possible.
Packit Service 9646c7
export PATH = $(shell echo "`pwd`/tests:$$PATH")
Packit Service 9646c7
Packit Service 9646c7
# Remove the autoreconf-provided INSTALL, so that we regenerate it.
Packit Service 9646c7
_autoreconf = autoreconf -i -v && rm -f INSTALL
Packit Service 9646c7
Packit Service 9646c7
# Used in maint.mk's web-manual rule
Packit Service 9646c7
manual_title = Creating Automatic Configuration Scripts
Packit Service 9646c7
Packit Service 9646c7
# The local directory containing the checked-out copy of gnulib used
Packit Service 9646c7
# in this release (override the default).  The $GNULIB_SRCDIR variable
Packit Service 9646c7
# is also honored by the gnulib-provided bootstrap script, so using it
Packit Service 9646c7
# here is consistent.
Packit Service 9646c7
gnulib_dir = $${GNULIB_SRCDIR-'$(abs_srcdir)'/../gnulib}
Packit Service 9646c7
Packit Service 9646c7
# The bootstrap tools (override the default).
Packit Service 9646c7
bootstrap-tools = automake
Packit Service 9646c7
Packit Service 9646c7
# Set preferred lists for announcements.
Packit Service 9646c7
Packit Service 9646c7
announcement_Cc_ = $(PACKAGE_BUGREPORT), autotools-announce@gnu.org
Packit Service 9646c7
announcement_mail-alpha = autoconf@gnu.org
Packit Service 9646c7
announcement_mail-beta = autoconf@gnu.org
Packit Service 9646c7
announcement_mail-stable = info-gnu@gnu.org, autoconf@gnu.org
Packit Service 9646c7
announcement_mail_headers_ =						\
Packit Service 9646c7
To: $(announcement_mail-$(RELEASE_TYPE))				\
Packit Service 9646c7
CC: $(announcement_Cc_)							\
Packit Service 9646c7
Mail-Followup-To: autoconf@gnu.org
Packit Service 9646c7
Packit Service 9646c7
# Update files from gnulib.
Packit Service 9646c7
.PHONY: fetch gnulib-update autom4te-update
Packit Service 9646c7
fetch: gnulib-update autom4te-update
Packit Service 9646c7
Packit Service 9646c7
gnulib-update:
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/announce-gen $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/config.guess $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/config.sub $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/elisp-comp $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/gendocs.sh $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/git-version-gen $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/gitlog-to-changelog $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/gnupload $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/install-sh $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/mdate-sh $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/missing $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/move-if-change $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/texinfo.tex $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/update-copyright $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/useless-if-before-free $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/build-aux/vc-list-files $(srcdir)/build-aux
Packit Service 9646c7
	cp $(gnulib_dir)/doc/fdl.texi $(srcdir)/doc
Packit Service 9646c7
	cp $(gnulib_dir)/doc/gendocs_template $(srcdir)/doc
Packit Service 9646c7
	cp $(gnulib_dir)/doc/gnu-oids.texi $(srcdir)/doc
Packit Service 9646c7
	cp $(gnulib_dir)/doc/make-stds.texi $(srcdir)/doc
Packit Service 9646c7
	cp $(gnulib_dir)/doc/standards.texi $(srcdir)/doc
Packit Service 9646c7
	cp $(gnulib_dir)/m4/autobuild.m4 $(srcdir)/m4
Packit Service 9646c7
	cp $(gnulib_dir)/top/GNUmakefile $(srcdir)
Packit Service 9646c7
	cp $(gnulib_dir)/top/maint.mk $(srcdir)
Packit Service 9646c7
Packit Service 9646c7
WGET = wget
Packit Service 9646c7
WGETFLAGS = -C off
Packit Service 9646c7
Packit Service 9646c7
## Fetch the latest versions of files we care about.
Packit Service 9646c7
automake_gitweb = \
Packit Service 9646c7
  http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;hb=HEAD;
Packit Service 9646c7
autom4te_files = \
Packit Service 9646c7
  Autom4te/Configure_ac.pm \
Packit Service 9646c7
  Autom4te/Channels.pm \
Packit Service 9646c7
  Autom4te/FileUtils.pm \
Packit Service 9646c7
  Autom4te/Getopt.pm \
Packit Service 9646c7
  Autom4te/XFile.pm
Packit Service 9646c7
Packit Service 9646c7
move_if_change = '$(abs_srcdir)'/build-aux/move-if-change
Packit Service 9646c7
Packit Service 9646c7
autom4te-update:
Packit Service 9646c7
	rm -fr Fetchdir > /dev/null 2>&1
Packit Service 9646c7
	mkdir -p Fetchdir/Autom4te
Packit Service 9646c7
	for file in $(autom4te_files); do \
Packit Service 9646c7
	  infile=`echo $$file | sed 's/Autom4te/Automake/g'`; \
Packit Service 9646c7
	  $(WGET) $(WGET_FLAGS) \
Packit Service 9646c7
	    "$(automake_gitweb)f=lib/$$infile" \
Packit Service 9646c7
	    -O "Fetchdir/$$file" || exit; \
Packit Service 9646c7
	done
Packit Service 9646c7
	perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm
Packit Service 9646c7
	for file in $(autom4te_files); do \
Packit Service 9646c7
	  $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file || exit; \
Packit Service 9646c7
	done
Packit Service 9646c7
	rm -fr Fetchdir > /dev/null 2>&1
Packit Service 9646c7
Packit Service 9646c7
# Tests not to run.
Packit Service 9646c7
local-checks-to-skip ?= \
Packit Service 9646c7
  changelog-check			\
Packit Service 9646c7
  sc_GPL_version			\
Packit Service 9646c7
  sc_cast_of_alloca_return_value	\
Packit Service 9646c7
  sc_m4_quote_check			\
Packit Service 9646c7
  sc_makefile_at_at_check		\
Packit Service 9646c7
  sc_prohibit_HAVE_MBRTOWC		\
Packit Service 9646c7
  sc_prohibit_always-defined_macros	\
Packit Service 9646c7
  sc_prohibit_always_true_header_tests	\
Packit Service 9646c7
  sc_prohibit_magic_number_exit		\
Packit Service 9646c7
  sc_prohibit_stat_st_blocks		\
Packit Service 9646c7
  sc_unmarked_diagnostics
Packit Service 9646c7
Packit Service 9646c7
Packit Service 9646c7
# Always use shorthand copyrights.
Packit Service 9646c7
update-copyright-env = \
Packit Service 9646c7
  UPDATE_COPYRIGHT_USE_INTERVALS=1 \
Packit Service 9646c7
  UPDATE_COPYRIGHT_MAX_LINE_LENGTH=72
Packit Service 9646c7
Packit Service 9646c7
# Prevent incorrect NEWS edits.
Packit Service 9646c7
old_NEWS_hash = 54ad39275441a2a3fcbe6182da4f84fb
Packit Service 9646c7
Packit Service 9646c7
exclude_file_name_regexp--sc_prohibit_undesirable_word_seq = \
Packit Service 9646c7
  ^(maint\.mk|build-aux/texinfo\.tex)$$
Packit Service 9646c7
exclude_file_name_regexp--sc_prohibit_test_minus_ao = \
Packit Service 9646c7
  ^(maint\.mk|doc/autoconf\.texi)$$
Packit Service 9646c7
exclude_file_name_regexp--sc_prohibit_atoi_atof = ^doc/autoconf\.texi$$
Packit Service 9646c7
exclude_file_name_regexp--sc_useless_cpp_parens = \
Packit Service 9646c7
  ^(build-aux/config\.guess|doc/standards\.texi)$$
Packit Service 9646c7
exclude_file_name_regexp--sc_trailing_blank = ^build-aux/texinfo\.tex$$
Packit Service 9646c7
exclude_file_name_regexp--sc_two_space_separator_in_usage = \
Packit Service 9646c7
  ^build-aux/gnupload$$