1 # Customize maint.mk -*- makefile -*-
2 # Copyright (C) 2003-2016 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 # Used in maint.mk's web-manual rule
18 manual_title = gzip: the data compression program
20 # Tests not to run as part of "make distcheck".
21 local-checks-to-skip = \
23 sc_error_message_period \
24 sc_error_message_uppercase \
28 # Tools used to bootstrap this package, used for "announcement".
29 bootstrap-tools = autoconf,automake,gnulib
31 # Now that we have better tests, make this the default.
34 old_NEWS_hash = dada3abad00e555713d6e99738224904
36 sc_obs_header_regex = \
37 \<(STDC_HEADERS|HAVE_(LIMITS|STRING|UNISTD|STDLIB)_H)\>
38 sc_prohibit_obsolete_HAVE_HEADER_H:
39 @prohibit='^[ ]*#[ ]*(el)?if.*$(sc_obs_header_regex)' \
40 halt='remove the above obsolete #if...HAVE_HEADER_H test(s)' \
43 update-copyright-env = \
44 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
45 UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
47 # Indent only with spaces.
48 sc_prohibit_tab_based_indentation:
50 halt='TAB in indentation; use only spaces' \
53 # Don't use "indent-tabs-mode: nil" anymore. No longer needed.
54 sc_prohibit_emacs__indent_tabs_mode__setting:
55 @prohibit='^( *[*#] *)?indent-tabs-mode:' \
56 halt='use of emacs indent-tabs-mode: setting' \
59 sc_gzip_copyright_check:
60 @require='Copyright \(C\) '$$(date +%Y)' Free' \
61 in_files=$(srcdir)/gzip.c \
62 halt='out of date copyright in $(v_etc_file); update it' \
65 include $(srcdir)/dist-check.mk
67 exclude_file_name_regexp--sc_file_system = ^NEWS$$
68 exclude_file_name_regexp--sc_prohibit_tab_based_indentation = \
69 (^|/)(GNU)?[Mm]akefile|(^|/)ChangeLog|\.(am|mk)$$
70 exclude_file_name_regexp--sc_require_config_h = ^lib/match\.c$$
71 exclude_file_name_regexp--sc_require_config_h_first = ^lib/match\.c$$
72 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
73 ^tests/hufts-segv\.gz$$
74 exclude_file_name_regexp--sc_prohibit_strcmp = ^gzip\.c$$
75 exclude_file_name_regexp--sc_prohibit_always-defined_macros = ^tailor\.h$$
76 exclude_file_name_regexp--sc_prohibit_atoi_atof = ^(gzip|sample/sub)\.c$$
77 exclude_file_name_regexp--sc_space_tab = ^lib/match\.c$$
78 exclude_file_name_regexp--sc_useless_cpp_parens = ^(lib/match\.c|tailor\.h)$$
80 exclude_file_name_regexp--sc_prohibit_double_semicolon = ^lib/match\.c$$
82 # Tell the tight_scope rule that sources are in ".".
85 # Tell the tight_scope rule that these variables are deliberately "extern".
86 export _gl_TS_unmarked_extern_vars = \
87 block_start d_buf inbuf outbuf prev read_buf strstart window \
88 match_start prev_length max_chain_length good_match nice_match