>From 33a20fc9b2995128805c439c87008c1c86ce55b3 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Thu, 13 Dec 2018 00:45:30 +0100 Subject: [PATCH] maint: prepare for using "make gnulib-sync" * cfg.mk (cu_GNULIB_SYNC_HOOK): Add target to copy files from gnulib. (_gl_GNULIB_SYNC_HOOK): Export variable to override gnulib's empty default. With this, "make gnulib-sync" (alias "update-gnulib-to-latest") will copy the files COPYING, bootstrap and tests/init.sh from the gnulib submodule after pulling. --- cfg.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cfg.mk b/cfg.mk index a02ed2748..ff5b3a0e7 100644 --- a/cfg.mk +++ b/cfg.mk @@ -50,6 +50,16 @@ export XZ_OPT = -8e old_NEWS_hash = 79133b52351baf64693804eed58a0cbc +# Override gnulib to copy some files from there during 'make gnulib-sync'. +cu_GNULIB_SYNC_HOOK: + @{ cd $(srcdir) \ + && set -x \ + && cp gnulib/doc/COPYINGv3 COPYING \ + && cp gnulib/build-aux/bootstrap bootstrap \ + && cp gnulib/tests/init.sh tests/init.sh \ + ; } +export _gl_GNULIB_SYNC_HOOK = cu_GNULIB_SYNC_HOOK + # Add an exemption for sc_makefile_at_at_check. _makefile_at_at_check_exceptions = ' && !/^cu_install_prog/ && !/dynamic-dep/' -- 2.19.2