1 # Customize maint.mk -*- makefile -*-
2 # Copyright (C) 2003-2013, 2015-2024 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 \
30 # Tools used to bootstrap this package, used for "announcement".
31 bootstrap-tools
= autoconf
,automake
,gnulib
33 # Override the default Cc: used in generating an announcement.
34 announcement_Cc_
= $(translation_project_
), $(PACKAGE
)-devel@gnu.org
36 # Now that we have better tests, make this the default.
39 old_NEWS_hash
= d6a8096805f9b3ee162842058477f0bc
41 # Tell maint.mk's syntax-check rules that diff gets config.h directly or
42 # via diff.h or system.h.
43 config_h_header
= (<config\.h
>|
"(diff|system)\.h")
45 # Add an exemption for sc_makefile_at_at_check.
46 _makefile_at_at_check_exceptions
= ' && !/MAKEINFO/'
48 update-copyright-env
= \
49 UPDATE_COPYRIGHT_USE_INTERVALS
=1 \
50 UPDATE_COPYRIGHT_MAX_LINE_LENGTH
=79
52 -include $(srcdir)/dist-check.mk
54 _cf_state_dir ?
= .config-state
55 _date_time
:= $(shell date
+%F.
%T
)
59 -I
'define PACKAGE_VERSION ' \
60 -I
'define PACKAGE_STRING ' \
61 $(_cf_state_dir
)/latest lib
/config.h
64 -I
'[SD]\["VERSION"\]' \
65 -I
'[SD]\["PACKAGE_VERSION"\]' \
66 -I
'D\["PACKAGE_STRING"\]' \
67 $(_cf_state_dir
)/latest config.status
70 $(MAKE
) --quiet config-compare
> /dev
/null
2>&1 \
71 && { echo no change
; exit
1; } ||
:
72 mkdir
-p
$(_cf_state_dir
)/$(_date_time
)
73 ln
-nsf
$(_date_time
) $(_cf_state_dir
)/latest
74 cp lib
/config.h config.status
$(_cf_state_dir
)/latest
76 exclude_file_name_regexp--sc_GPL_version
= ^gl
/lib
/
77 exclude_file_name_regexp--sc_bindtextdomain
= ^gl
/tests
/
78 exclude_file_name_regexp--sc_doubled_words
= ^gl
/lib
/mcel\.h
$$
79 exclude_file_name_regexp--sc_prohibit_doubled_word
= ^
(gl
/lib
/mcel\.h|tests
/y2038-vs-32bit
)$$
80 exclude_file_name_regexp--sc_prohibit_strcmp
= ^gl
/lib
/
82 # Tell gnulib's tight_scope rule that we mark extern inlines with
83 # DIFF_INLINE and SYSTEM_INLINE.
84 export _gl_TS_extern
= extern|DIFF_INLINE|SYSTEM_INLINE