add packaging
[platform/upstream/m4.git] / cfg.mk
1 # Customize maint.mk.                           -*- makefile -*-
2 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
3
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.
8
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.
13
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/>.
16
17 # Used in maint.mk's web-manual rule
18 manual_title = GNU macro processor
19
20 # Always use shorthand copyrights.
21 update-copyright-env = \
22   UPDATE_COPYRIGHT_USE_INTERVALS=1 \
23   UPDATE_COPYRIGHT_MAX_LINE_LENGTH=72
24
25 # Tests not to run as part of "make syntax-check".
26 local-checks-to-skip =
27 # We haven't yet turned on i18n
28 local-checks-to-skip += sc_bindtextdomain
29 # M4 intentionally uses a coding style that compiles under C++.
30 local-checks-to-skip += sc_cast_of_x_alloc_return_value
31
32 # Our files include "m4.h", which in turn includes <config.h> first.
33 config_h_header = "m4\.h"
34
35 # Hash of NEWS contents, to ensure we don't add entries to wrong section.
36 old_NEWS_hash = 345b93b3900db54f6bab85e3da153b38
37
38 # Indent only with spaces.
39 sc_prohibit_tab_based_indentation:
40  @re='^ *    '                                               \
41  msg='TAB in indentation; use only spaces'                   \
42    $(_prohibit_regexp)
43
44 # List all syntax-check exemptions:
45 exclude_file_name_regexp--sc_prohibit_tab_based_indentation = \
46   (^(GNU)?Makefile(\.am)?|\.mk|^HACKING|^ChangeLog.*)$$
47 exclude_file_name_regexp--update-copyright = ^m4/gnulib-cache.m4$$