gzip: port better to mingw again
[gzip.git] / cfg.mk
blob8ca64b48e78a7c7d7e4db8219496b1856df5f23f
1 # Customize maint.mk -*- makefile -*-
2 # Copyright (C) 2003-2018 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 <https://www.gnu.org/licenses/>.
17 # Used in maint.mk's web-manual rule
18 manual_title = gzip: the data compression program
20 # Use the direct link. This is guaranteed to work immediately, while
21 # it can take a while for the faster mirror links to become usable.
22 url_dir_list = https://ftp.gnu.org/gnu/$(PACKAGE)
24 # Tests not to run as part of "make distcheck".
25 local-checks-to-skip = \
26 sc_bindtextdomain \
27 sc_error_message_period \
28 sc_error_message_uppercase \
29 sc_program_name \
30 sc_texinfo_acronym
32 # Tools used to bootstrap this package, used for "announcement".
33 bootstrap-tools = autoconf,automake,gnulib
35 # Now that we have better tests, make this the default.
36 export VERBOSE = yes
38 old_NEWS_hash = be971f82131abd0bf8f988ec98ebc4e5
40 sc_obs_header_regex = \
41 \<(STDC_HEADERS|HAVE_(LIMITS|STRING|UNISTD|STDLIB)_H)\>
42 sc_prohibit_obsolete_HAVE_HEADER_H:
43 @prohibit='^[ ]*#[ ]*(el)?if.*$(sc_obs_header_regex)' \
44 halt='remove the above obsolete #if...HAVE_HEADER_H test(s)' \
45 $(_sc_search_regexp)
47 update-copyright-env = \
48 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
49 UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
51 # Indent only with spaces.
52 sc_prohibit_tab_based_indentation:
53 @prohibit='^ * ' \
54 halt='TAB in indentation; use only spaces' \
55 $(_sc_search_regexp)
57 # Don't use "indent-tabs-mode: nil" anymore. No longer needed.
58 sc_prohibit_emacs__indent_tabs_mode__setting:
59 @prohibit='^( *[*#] *)?indent-tabs-mode:' \
60 halt='use of emacs indent-tabs-mode: setting' \
61 $(_sc_search_regexp)
63 sc_gzip_copyright_check:
64 @require='Copyright \(C\) '$$(date +%Y)' Free' \
65 in_vc_files=$(srcdir)/gzip.c \
66 halt="out of date copyright in $$in_files; update it" \
67 $(_sc_search_regexp)
69 include $(srcdir)/dist-check.mk
71 exclude_file_name_regexp--sc_file_system = ^NEWS$$
72 exclude_file_name_regexp--sc_prohibit_tab_based_indentation = \
73 (^|/)(GNU)?[Mm]akefile|(^|/)ChangeLog|\.(am|mk)$$
74 exclude_file_name_regexp--sc_require_config_h = ^lib/match\.c$$
75 exclude_file_name_regexp--sc_require_config_h_first = ^lib/match\.c$$
76 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
77 ^tests/hufts-segv\.gz$$
78 exclude_file_name_regexp--sc_prohibit_strcmp = ^gzip\.c$$
79 exclude_file_name_regexp--sc_prohibit_always-defined_macros = ^tailor\.h$$
80 exclude_file_name_regexp--sc_prohibit_atoi_atof = ^(gzip|sample/sub)\.c$$
81 exclude_file_name_regexp--sc_space_tab = ^lib/match\.c$$
82 exclude_file_name_regexp--sc_useless_cpp_parens = ^(lib/match\.c|tailor\.h)$$
84 exclude_file_name_regexp--sc_prohibit_double_semicolon = ^lib/match\.c$$
86 # Tell the tight_scope rule that sources are in ".".
87 export _gl_TS_dir = .
89 # Tell the tight_scope rule that these variables are deliberately "extern".
90 export _gl_TS_unmarked_extern_vars = \
91 block_start d_buf inbuf outbuf prev read_buf strstart window \
92 match_start prev_length max_chain_length good_match nice_match