1 # Customize maint.mk. -*- makefile -*-
2 # Copyright (C) 2003-2011, 2013-2014, 2017 Free Software Foundation,
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.
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.
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/>.
18 # We intentionally hide the submodule in a subdirectory
19 gnulib_dir
= $(srcdir)/build-aux
/gnulib
21 # Used in maint.mk's web-manual rule
22 manual_title
= GNU macro processor
24 # Always use shorthand copyrights.
25 update-copyright-env
= \
26 UPDATE_COPYRIGHT_USE_INTERVALS
=1 \
27 UPDATE_COPYRIGHT_MAX_LINE_LENGTH
=72
29 # Tests not to run as part of "make syntax-check".
30 # M4 intentionally uses a coding style that compiles under C++.
31 # sc_proper_name_utf8_requires_ICONV doesn't work with non-recursive Makefile
32 # sc_po_check assumes a directory layout that we don't quite provide
33 local-checks-to-skip
= sc_cast_of_x_alloc_return_value \
34 sc_proper_name_utf8_requires_ICONV \
38 # PRAGMA_SYSTEM_HEADER includes #, which does not work through a
39 # Makefile variable, so we exempt it.
40 _makefile_at_at_check_exceptions
= ' && !/PRAGMA_SYSTEM_HEADER/'
42 # Hash of NEWS contents, to ensure we don't add entries to wrong section.
43 old_NEWS_hash
= 761ae30101b24be4aea2f564e9ceee75
45 # Indent only with spaces.
46 sc_prohibit_tab_based_indentation
:
48 msg
='TAB in indentation; use only spaces' \
51 # List all syntax-check exemptions:
52 exclude_file_name_regexp--sc_cast_of_argument_to_free
= ^m4
/m4private.h
$
53 exclude_file_name_regexp--sc_prohibit_always_true_header_tests
= \
55 exclude_file_name_regexp--sc_prohibit_strncpy
= ^m4
/path.c
$$
56 exclude_file_name_regexp--sc_prohibit_tab_based_indentation
= \
57 (^
(GNU
)?Makefile
(\.am
)?|\.mk|^HACKING|^ChangeLog.
*)$$
58 exclude_file_name_regexp--sc_require_config_h
= \
59 ^modules
/(evalparse|format
)\.c
$$
60 exclude_file_name_regexp--sc_require_config_h_first
= \
61 ^modules
/(evalparse|format
)\.c
$$
62 exclude_file_name_regexp--update_copyright
= \
63 ^
(doc
/m4\.texi|ltdl
/m4
/gnulib-cache.m4
)$$