1 # Customize maint.mk -*- makefile -*-
2 # Copyright (C) 2003-2013, 2015-2018 Free Software Foundation, Inc.
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Use the direct link. This is guaranteed to work immediately, while
18 # it can take a while for the faster mirror links to become usable.
19 url_dir_list = https://ftp.gnu.org/gnu/$(PACKAGE)
21 # Used in maint.mk's web-manual rule
22 manual_title = Comparing and Merging Files
24 # Tests not to run as part of "make distcheck".
25 local-checks-to-skip = \
26 sc_error_message_period \
27 sc_error_message_uppercase
29 # Tools used to bootstrap this package, used for "announcement".
30 bootstrap-tools = autoconf,automake,gnulib
32 # Override the default Cc: used in generating an announcement.
33 announcement_Cc_ = $(translation_project_), $(PACKAGE)-devel@gnu.org
35 # Now that we have better tests, make this the default.
38 old_NEWS_hash = 773368daadfe6d96f43de867c87f45e7
40 # Tell maint.mk's syntax-check rules that diff gets config.h directly or
41 # via diff.h or system.h.
42 config_h_header = (<config\.h>|"(diff|system)\.h")
44 update-copyright-env = \
45 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
46 UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
48 -include $(srcdir)/dist-check.mk
50 _cf_state_dir ?= .config-state
51 _date_time := $(shell date +%F.%T)
55 -I'define PACKAGE_VERSION ' \
56 -I'define PACKAGE_STRING ' \
57 $(_cf_state_dir)/latest lib/config.h
60 -I'[SD]\["VERSION"\]' \
61 -I'[SD]\["PACKAGE_VERSION"\]' \
62 -I'D\["PACKAGE_STRING"\]' \
63 $(_cf_state_dir)/latest config.status
66 $(MAKE) --quiet config-compare > /dev/null 2>&1 \
67 && { echo no change; exit 1; } || :
68 mkdir -p $(_cf_state_dir)/$(_date_time)
69 ln -nsf $(_date_time) $(_cf_state_dir)/latest
70 cp lib/config.h config.status $(_cf_state_dir)/latest
72 exclude_file_name_regexp--sc_space_tab = ^gl/lib/.*\.c\.diff$$
74 # Tell gnulib's tight_scope rule that we mark externs with XTERN
75 export _gl_TS_extern = extern|XTERN