1# Customize maint.mk for Autoconf. -*- Makefile -*- 2# Copyright (C) 2003-2004, 2006, 2008-2012 Free Software Foundation, 3# Inc. 4 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. 9 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. 14 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/>. 17 18# This file is '-include'd into GNUmakefile. 19 20# Build with our own versions of these tools, when possible. 21export PATH = $(shell echo "`pwd`/tests:$$PATH") 22 23# Remove the autoreconf-provided INSTALL, so that we regenerate it. 24_autoreconf = autoreconf -i -v && rm -f INSTALL 25 26# Used in maint.mk's web-manual rule 27manual_title = Creating Automatic Configuration Scripts 28 29# The local directory containing the checked-out copy of gnulib used 30# in this release (override the default). The $GNULIB_SRCDIR variable 31# is also honored by the gnulib-provided bootstrap script, so using it 32# here is consistent. 33gnulib_dir = $${GNULIB_SRCDIR-'$(abs_srcdir)'/../gnulib} 34 35# The bootstrap tools (override the default). 36bootstrap-tools = automake 37 38# Set preferred lists for announcements. 39 40announcement_Cc_ = $(PACKAGE_BUGREPORT), autotools-announce@gnu.org 41announcement_mail-alpha = autoconf@gnu.org 42announcement_mail-beta = autoconf@gnu.org 43announcement_mail-stable = info-gnu@gnu.org, autoconf@gnu.org 44announcement_mail_headers_ = \ 45To: $(announcement_mail-$(RELEASE_TYPE)) \ 46CC: $(announcement_Cc_) \ 47Mail-Followup-To: autoconf@gnu.org 48 49# Update files from gnulib. 50.PHONY: fetch gnulib-update autom4te-update 51fetch: gnulib-update autom4te-update 52 53gnulib-update: 54 cp $(gnulib_dir)/build-aux/announce-gen $(srcdir)/build-aux 55 cp $(gnulib_dir)/build-aux/config.guess $(srcdir)/build-aux 56 cp $(gnulib_dir)/build-aux/config.sub $(srcdir)/build-aux 57 cp $(gnulib_dir)/build-aux/elisp-comp $(srcdir)/build-aux 58 cp $(gnulib_dir)/build-aux/gendocs.sh $(srcdir)/build-aux 59 cp $(gnulib_dir)/build-aux/git-version-gen $(srcdir)/build-aux 60 cp $(gnulib_dir)/build-aux/gitlog-to-changelog $(srcdir)/build-aux 61 cp $(gnulib_dir)/build-aux/gnupload $(srcdir)/build-aux 62 cp $(gnulib_dir)/build-aux/install-sh $(srcdir)/build-aux 63 cp $(gnulib_dir)/build-aux/mdate-sh $(srcdir)/build-aux 64 cp $(gnulib_dir)/build-aux/missing $(srcdir)/build-aux 65 cp $(gnulib_dir)/build-aux/move-if-change $(srcdir)/build-aux 66 cp $(gnulib_dir)/build-aux/texinfo.tex $(srcdir)/build-aux 67 cp $(gnulib_dir)/build-aux/update-copyright $(srcdir)/build-aux 68 cp $(gnulib_dir)/build-aux/useless-if-before-free $(srcdir)/build-aux 69 cp $(gnulib_dir)/build-aux/vc-list-files $(srcdir)/build-aux 70 cp $(gnulib_dir)/doc/fdl.texi $(srcdir)/doc 71 cp $(gnulib_dir)/doc/gendocs_template $(srcdir)/doc 72 cp $(gnulib_dir)/doc/gnu-oids.texi $(srcdir)/doc 73 cp $(gnulib_dir)/doc/make-stds.texi $(srcdir)/doc 74 cp $(gnulib_dir)/doc/standards.texi $(srcdir)/doc 75 cp $(gnulib_dir)/m4/autobuild.m4 $(srcdir)/m4 76 cp $(gnulib_dir)/top/GNUmakefile $(srcdir) 77 cp $(gnulib_dir)/top/maint.mk $(srcdir) 78 79WGET = wget 80WGETFLAGS = -C off 81 82## Fetch the latest versions of files we care about. 83automake_gitweb = \ 84 http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;hb=HEAD; 85autom4te_files = \ 86 Autom4te/Configure_ac.pm \ 87 Autom4te/Channels.pm \ 88 Autom4te/FileUtils.pm \ 89 Autom4te/Getopt.pm \ 90 Autom4te/XFile.pm 91 92move_if_change = '$(abs_srcdir)'/build-aux/move-if-change 93 94autom4te-update: 95 rm -fr Fetchdir > /dev/null 2>&1 96 mkdir -p Fetchdir/Autom4te 97 for file in $(autom4te_files); do \ 98 infile=`echo $$file | sed 's/Autom4te/Automake/g'`; \ 99 $(WGET) $(WGET_FLAGS) \ 100 "$(automake_gitweb)f=lib/$$infile" \ 101 -O "Fetchdir/$$file" || exit; \ 102 done 103 perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm 104 for file in $(autom4te_files); do \ 105 $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file || exit; \ 106 done 107 rm -fr Fetchdir > /dev/null 2>&1 108 109# Tests not to run. 110local-checks-to-skip ?= \ 111 changelog-check \ 112 sc_GPL_version \ 113 sc_cast_of_alloca_return_value \ 114 sc_m4_quote_check \ 115 sc_makefile_at_at_check \ 116 sc_prohibit_HAVE_MBRTOWC \ 117 sc_prohibit_always-defined_macros \ 118 sc_prohibit_always_true_header_tests \ 119 sc_prohibit_magic_number_exit \ 120 sc_prohibit_stat_st_blocks \ 121 sc_unmarked_diagnostics 122 123 124# Always use shorthand copyrights. 125update-copyright-env = \ 126 UPDATE_COPYRIGHT_USE_INTERVALS=1 \ 127 UPDATE_COPYRIGHT_MAX_LINE_LENGTH=72 128 129# Prevent incorrect NEWS edits. 130old_NEWS_hash = 54ad39275441a2a3fcbe6182da4f84fb 131 132exclude_file_name_regexp--sc_prohibit_undesirable_word_seq = \ 133 ^(maint\.mk|build-aux/texinfo\.tex)$$ 134exclude_file_name_regexp--sc_prohibit_test_minus_ao = \ 135 ^(maint\.mk|doc/autoconf\.texi)$$ 136exclude_file_name_regexp--sc_prohibit_atoi_atof = ^doc/autoconf\.texi$$ 137exclude_file_name_regexp--sc_useless_cpp_parens = \ 138 ^(build-aux/config\.guess|doc/standards\.texi)$$ 139exclude_file_name_regexp--sc_trailing_blank = ^build-aux/texinfo\.tex$$ 140exclude_file_name_regexp--sc_two_space_separator_in_usage = \ 141 ^build-aux/gnupload$$ 142