summaryrefslogtreecommitdiff
path: root/top/maint.mk
Commit message (Collapse)AuthorAgeFilesLines
* maintainer-makefile: Determine gnulib's location on disk correctly.Bruno Haible2023-01-301-3/+3
| | | | | * top/maint.mk (gnulib_dir): Give priority to $(GNULIB_SRCDIR) over $(srcdir)/gnulib.
* maint: run 'make update-copyright'Simon Josefsson2023-01-011-1/+1
|
* maintainer-makefile: Fix last sc_indent commit.Simon Josefsson2022-11-011-1/+1
| | | | | * top/maint.mk (sc_indent): Don't use grep -q. Suggested by Bruno Haible.
* maintainer-makefile: Add syntax-check rule for unportable 'grep -q'.Simon Josefsson2022-11-011-0/+4
| | | | * top/maint.mk (sc_unportable_grep_q): Add.
* maintainer-makefile: Fix Apple Xcode 'make syntax-check'.Simon Josefsson2022-10-311-2/+2
| | | | * top/maint.mk (sc_indent): Don't use non-GNU indent.
* maint: avoid unportable ERE \}Paul Eggert2022-09-111-1/+1
| | | | | * top/maint.mk (sc_copyright_check): Avoid unportable use of \} in ERE.
* verify: improve maint checkPaul Eggert2022-09-111-1/+1
| | | | | * top/maint.mk (sc_prohibit_verify_without_use): Adjust re to match verify.h.
* maintainer-makefile: Check for incorrect DISTCHECK_CONFIGURE_FLAGS usage.Simon Josefsson2022-08-161-0/+6
| | | | * top/maint.mk (sc_makefile_DISTCHECK_CONFIGURE_FLAGS): Add.
* maint.mk: fix syntax-check for unnecessary hash.h header useJim Meyering2022-06-231-2/+2
| | | | | | | | * top/maint.mk (_hash_re): Correct the regexp. It had two problems: - lacked the "hash_" prefix, so would match non-uses - failed to detect uses of the hash_x?initialize functions The former led to an excess/unneeded use of hash.h in coreutils' cut.c. The latter would have led to a FP "not needed" report for copy.c.
* regex-quote: \] -> ] in EREs and BREsPaul Eggert2022-06-031-4/+4
| | | | | | | | | | | | | * build-aux/bootstrap: * build-aux/bootstrap.conf (gettext_external): * check-AC_LIBOBJ: * lib/regex-quote.c (bre_special, ere_special): * gnulib-tool (func_modules_transitive_closure) (func_emit_autoconf_snippet, func_import, func_create_testdir): * tests/test-regex-quote.c (test_bre, test_ere): * top/maint.mk (longopt_re, gpg_key_ID): Don’t use \] in BREs and EREs, as POSIX says the interpretation is undefined.
* maintainer-makefile: Improve GnuPG announce-gen options.Simon Josefsson2022-03-141-0/+9
| | | | | | | * top/maint.mk (gpg_key_emil): New variable. (gpg_keyring_url): New variable. (announcement): Pass them as --gpg-key-email and --gpg-keyring-url.
* maintainer-makefile: fix sc_error_message_uppercase false failurePádraig Brady2022-01-281-1/+1
| | | | | | | | * top/maint.mk (sc_error_message_uppercase): Don't trigger for any of the PRI... defines. Note we add an extra constraint here that PRI always follows a double quote, but that's almost always the case, or can be easily made so by prepending "" for example.
* maint: run 'make update-copyright'Paul Eggert2022-01-011-1/+1
|
* maint: tight-scope-mk need not be read-onlyPaul Eggert2021-12-241-2/+1
| | | | | * top/maint.mk (tight-scope.mk): Don’t bother to make tight-scope.mk read-only either.
* Move AM_V_GEN to recipe startPaul Eggert2021-12-211-1/+1
| | | | | | | | | | | | | | | | | | | This is especially needed when building Emacs, as it uses ‘AM_V_GEN=@$(info GEN $@)', which means the GEN line is output by GNU make just before the recipe runs, regardless of where AM_V_GEN appears in the recipe. And it’s also good practice even if the default Automake ‘AM_V_GEN=@echo GEN $@;’ is used, as it’s better to output the GEN line consistently at the start of every recipe, even if this precedes a preparatory command that almost always works silently. * modules/arpa_inet, modules/dynarray, modules/net_if: * modules/netinet_in, modules/scratch_buffer, modules/selinux-h: * modules/sys_file, modules/sys_ioctl, modules/sys_random: * modules/sys_resource, modules/sys_select, modules/sys_socket: * modules/sys_stat, modules/sys_time, modules/sys_times: * modules/sys_types, modules/sys_uio, modules/sys_utsname: * modules/sys_wait, modules/unicase/special-casing, top/maint.mk: Use AM_V_GEN only at the start of each recipe.
* maint: Avoid syntax-check failure for empty gnulib submodule.Simon Josefsson2021-09-201-1/+1
| | | | | * top/maint.mk (gnulib_dir): Fall back to GNULIB_SRCDIR if submodule is not checked out.
* maintainer-makefile: add 'can' to sc_prohibit_doubled_wordPádraig Brady2021-09-091-1/+1
| | | | * top/maint.mk (sc_prohibit_doubled_word): Check for "can can".
* maintainer-makefile: Add indentation syntax-check rule.Simon Josefsson2021-09-031-4/+24
| | | | | | | | * top/maint.mk (indent): Use AM_V_GEN and indent_args. (sc_indent): New rule. (indent_args): New variable. (C_SOURCES): New variable, initialized to reasonable C files. (exclude_file_name_regexp--indent): New variable.
* maintainer-makefile: Print checksums by default.Simon Josefsson2021-08-031-1/+0
| | | | * top/maint.mk (announcement): Drop --no-print-checksums.
* maintainer-makefile: Respect cfg.mk setting announcement_Cc_, reverting most ↵Simon Josefsson2021-07-281-5/+5
| | | | | | | | | | | | of the previous patch. * top/maint.mk (announcement_mail_Cc_stable): Rename back to announcement_Cc_stable. (announcement_Cc_alpha): Rename back to announcement_mail_Cc_alpha. (announcement_Cc_): Renamed from announcement_mail_Cc_. (announcement_mail_headers_stable) (announcement_mail_headers_alpha): Use announcement_Cc_ again.
* maintainer-makefile: Fix announcement mail CC's.Simon Josefsson2021-07-281-4/+4
| | | | | | | | | * top/maint.mk (announcement_Cc_stable): Rename to announcement_mail_Cc_stable. (announcement_Cc_alpha): Rename to announcement_mail_Cc_alpha. (announcement_mail_headers_stable) (announcement_mail_headers_alpha): Use announcement_mail_Cc_ instead of announcement_Cc_.
* maintainer-makefile: Mimic bootstrap's gnulib-srcdir guessing.Simon Josefsson2021-01-261-1/+5
| | | | | * top/maint.mk (gnulib_dir): If $(srcdir)/gnulib doesn't exist, fall back to $GNULIB_SRCDIR.
* maintainer-makefile: correct preceding changeJim Meyering2021-01-051-1/+1
| | | | * top/maint.mk (syntax-check-rules): Use LC_ALL=C, not LANG=C.
* maintainer-makefile: Invoke syntax-checks regardless of locale.Simon Josefsson2021-01-041-1/+1
| | | | | * top/maint.mk (syntax-check-rules): Invoke sed with LANG=C environment because [a-z] may not include 'w' in all locales.
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* * top/maint.mk: Pacify Autoconf TAB-8-space rule.Paul Eggert2020-06-291-2/+2
|
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* maintainer-makefile: update rule for argmatchAkim Demaille2019-10-221-1/+1
| | | | * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
* maintainer-makefile: restore portability to non-GNU awksAkim Demaille2019-06-241-9/+12
| | | | | | Reported by Tim Rühsen. * top/maint.mk (AWK): New variable. Use it. (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
* maintainer-makefile: catch uses of $< in non-implicit rulesAkim Demaille2019-05-191-0/+35
| | | | * top/maint.mk (sc_prohibit_magic_number_exit): New.
* long-options: add parse_gnu_standard_options_onlyBernhard Voelker2019-02-231-1/+1
| | | | | | | | | | | | | | | Discussed in https://bugs.gnu.org/33468 . * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0. (parse_gnu_standard_options_only): Add function to process the GNU default options --help and --version and fail for any other unknown long or short option. See https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html . * lib/long-options.h (parse_gnu_standard_options_only): Declare it. * modules/long-options (depends-on): Add stdbool, exitfail. * top/maint.mk (sc_prohibit_long_options_without_use): Update syntax-check rule, add new function name.
* maintainer-makefile: Make the configure.ac section optional.Bruno Haible2019-01-061-0/+6
| | | | * top/maint.mk (GREP, SED): Define if not defined.
* maintainer-makefile: fix typo in previous patchEric Blake2019-01-031-1/+1
| | | | | | | * top/maint.mk (_sc_search_regexp): Fix my accidental corruption of Roman's work. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint.mk: Replace grep with $(GREP)Roman Bolshakov2019-01-021-58/+58
| | | | | | | | | | | | | | | | | | | | A project that uses maint.mk can specify regular expressions that are not supported in system grep. Autoconf can discover an alias for GNU grep and set it in GREP but it takes no effect for maint.mk The patch provides an ability to use GNU grep if it was discovered by autoconf and by calling GNU grep we don't get the messages in syntax-check: prohibit_diagnostic_without_format grep: empty (sub)expression grep: empty (sub)expression grep: empty (sub)expression grep: empty (sub)expression grep: empty (sub)expression grep: empty (sub)expression Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20181213153453.38123-3-r.bolshakov@yadro.com> Signed-off-by: Eric Blake <eblake@redhat.com>
* maint.mk: Split long argument listsRoman Bolshakov2019-01-021-49/+86
| | | | | | | | | | | | | | | | | | | $(VC_LIST_EXCEPT) is usually expanded into arguments for a command. When a project contains too many, some operating systems can't pass all the arguments because they hit the limit of arguments. FreeBSD and macOS are known to have the exec limit of 256k memory used by arguments. More on the issue: http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00019.html https://www.redhat.com/archives/libvir-list/2015-August/msg00758.html xargs without flags can be used to limit number of arguments, coupled with use of the shell's built-in echo which is not subject to the exec limits. Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20181213153453.38123-2-r.bolshakov@yadro.com> Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-1/+1
|
* maintainer-makefile: fix syntax-check rule for "same.h"Bernhard Voelker2018-10-281-1/+1
| | | | | * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check for 'same_nameat', too.
* maint.mk: exempt "/proc/filesystems" from "file system" syntax checkJim Meyering2018-02-031-0/+1
| | | | | * top/maint.mk (sc_file_system): Don't complain about "/proc/filesystems".
* maint: Run 'make update-copyright'Paul Eggert2018-01-011-1/+1
|
* maint: shorten https://lists.gnu.org/archive/html/... linksJim Meyering2017-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each /archive/html/ part can be replace with /r/. Run this to induce the change: git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g' * ChangeLog: Perform that substitution. * Makefile: Likewise. * STATUS-libposix: Likewise. * build-aux/bootstrap: Likewise. * doc/maintain.texi: Likewise. * gnulib-tool: Likewise. * lib/allocator.h: Likewise. * lib/argp-ba.c: Likewise. * lib/argp-pv.c: Likewise. * lib/canon-host.c: Likewise. * lib/canonicalize-lgpl.c: Likewise. * lib/float.in.h: Likewise. * lib/fstat.c: Likewise. * lib/getdelim.c: Likewise. * lib/getprogname.c: Likewise. * lib/glthread/thread.h: Likewise. * lib/intprops.h: Likewise. * lib/mbsrtowcs-state.c: Likewise. * lib/safe-read.c: Likewise. * lib/signal.in.h: Likewise. * lib/stat.c: Likewise. * lib/stdbool.in.h: Likewise. * lib/stdio-impl.h: Likewise. * lib/stdio.in.h: Likewise. * lib/sysexits.in.h: Likewise. * lib/timespec.h: Likewise. * lib/wcsrtombs-state.c: Likewise. * m4/alloca.m4: Likewise. * m4/extern-inline.m4: Likewise. * m4/fstatat.m4: Likewise. * m4/gnulib-common.m4: Likewise. * m4/lib-ignore.m4: Likewise. * m4/printf.m4: Likewise. * m4/regex.m4: Likewise. * m4/stat-size.m4: Likewise. * m4/std-gnu11.m4: Likewise. * m4/stdbool.m4: Likewise. * m4/sys_types_h.m4: Likewise. * m4/threadlib.m4: Likewise. * m4/vararrays.m4: Likewise. * pygnulib/GLImport.py: Likewise. * tests/test-exp.h: Likewise. * tests/test-exp2.h: Likewise. * tests/test-expm1.h: Likewise. * tests/test-fflush2.c: Likewise. * tests/test-getopt_long.h: Likewise. * tests/test-intprops.c: Likewise. * tests/test-log.h: Likewise. * tests/test-log10.h: Likewise. * tests/test-log1p.h: Likewise. * tests/test-log2.h: Likewise. * tests/test-printf-posix.h: Likewise. * tests/test-regex.c: Likewise. * tests/test-snprintf-posix.h: Likewise. * tests/test-sprintf-posix.h: Likewise. * tests/test-stdalign.c: Likewise. * tests/test-stdbool.c: Likewise. * tests/test-vasnprintf-posix.c: Likewise. * tests/test-vasprintf-posix.c: Likewise. * top/maint.mk: Likewise.
* all: Replace many more http URLs by https URLs. Update stale URLs.Bruno Haible2017-09-141-4/+4
| | | | | * users.txt: Remove mention of 'newts'. * lib/localename.c: Update comment about LANG_SOTHO.
* all: prefer https: URLsPaul Eggert2017-09-131-3/+3
|
* maintainer-makefile: FTP -> HTTPSPaul Eggert2017-09-121-2/+2
| | | | | * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead of FTP, which is planned to be decommissioned on 2017-11-01.
* maint.mk: update regex to reflect 2013 addition of "assume" to verify.hJim Meyering2017-05-131-1/+1
| | | | | * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source file that uses the assume macro, claiming that verify.h is unused.
* maint.mk: enforce spelling of "timestamp" (i.e., no space)Jim Meyering2017-01-101-1/+2
| | | | | * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also disallow /\btime\s+stamps?\b/. Prefer "timestamp".
* maint.mk: support parallel execution of coveragePádraig Brady2017-01-051-1/+4
| | | | | | * top/maint.mk (coverage): Run dependencies serially, thus supporting parallel processing of each one, particularly build-coverage, which builds and runs tests.
* version-etc: new yearPaul Eggert2017-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* maint.mk: hoist gnulib_dir definition earlierEric Blake2016-12-311-1/+4
| | | | | | | | | | | | | | | Commit 1894933 introduced a temporary warning during all uses of 'make': Can't open /lib/intprops.h: No such file or directory. due to an early evaluation of $(shell) prior to the default definition of $(gnulib_dir). While that has been fixed in commit ffff79d, hoisting the definition to the top will prevent further edits from inadvertently reintroducing the problem. * top/maint.mk (gnulib_dir): Move near top of file. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint.mk: do not always evaluate intprops-related shellJim Meyering2016-12-311-1/+1
| | | | | | | | | * top/maint.mk (_intprops_names): Change := to just "=" to avoid using gnulib_dir undefined (gnulib_dir is defined later in the file, which will be fixed separately), and besides, there is no need to incur the cost of this shell invocation for every single use of this .mk file. Reported by Eric Blake in https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
* maint.mk: improve sc_prohibit_intprops_without_useJim Meyering2016-12-301-12/+8
| | | | | * top/maint.mk (_intprops_names): Don't hard-code the list of symbol names. Instead, derive it on the fly.