1 # Customize maint.mk -*- makefile -*-
2 # Copyright (C) 2003-2011 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 sc_prohibit_S_IS_definition \
29 sc_prohibit_atoi_atof \
30 sc_prohibit_stat_st_blocks \
36 # Tools used to bootstrap this package, used for "announcement".
37 bootstrap-tools
= autoconf
,automake
,gnulib
39 # Now that we have better tests, make this the default.
42 old_NEWS_hash
= 4e76bc5d3e489bb63342e85762172502
44 sc_obs_header_regex
= \
45 \
<(STDC_HEADERS|HAVE_
(LIMITS|STRING|UNISTD|STDLIB
)_H
)\
>
46 sc_prohibit_obsolete_HAVE_HEADER_H
:
47 @prohibit
='^[ ]*#[ ]*(el)?if.*$(sc_obs_header_regex)' \
48 halt
='remove the above obsolete #if...HAVE_HEADER_H test(s)' \
51 update-copyright-env
= \
52 UPDATE_COPYRIGHT_USE_INTERVALS
=1 \
53 UPDATE_COPYRIGHT_MAX_LINE_LENGTH
=79
55 # Indent only with spaces.
56 sc_prohibit_tab_based_indentation
:
58 halt
='TAB in indentation; use only spaces' \
61 # Don't use "indent-tabs-mode: nil" anymore. No longer needed.
62 sc_prohibit_emacs__indent_tabs_mode__setting
:
63 @prohibit
='^( *[*#] *)?indent-tabs-mode:' \
64 halt
='use of emacs indent-tabs-mode: setting' \
67 include $(srcdir)/dist-check.mk
69 exclude_file_name_regexp--sc_file_system
= ^NEWS
$$
70 exclude_file_name_regexp--sc_prohibit_tab_based_indentation
= \
71 (^|
/)(GNU
)?
[Mm
]akefile|
(^|
/)ChangeLog|\.
(am|mk
)$$
72 exclude_file_name_regexp--sc_require_config_h
= ^lib
/match\.c
$$
73 exclude_file_name_regexp--sc_require_config_h_first
= ^lib
/match\.c
$$
74 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF
= \
75 ^tests
/hufts-segv\.gz
$$
76 exclude_file_name_regexp--sc_prohibit_strcmp
= ^gzip\.c
$$