From: Bruno Haible Date: Tue, 30 Dec 2025 00:26:21 +0000 (+0100) Subject: Fix "make dist" error when BUILT_SPIT_IN_C is false. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c326dfe6cb894a348573600c1186c0f2a507fc30;p=thirdparty%2Fgettext.git Fix "make dist" error when BUILT_SPIT_IN_C is false. * gettext-tools/src/Makefile.am (noinst_SCRIPTS): Add 'spit'. (spit): New rule. (BUILT_SOURCES, MOSTLYCLEANFILES): Add it. --- diff --git a/gettext-tools/src/Makefile.am b/gettext-tools/src/Makefile.am index 044117b94..7b74b72dc 100644 --- a/gettext-tools/src/Makefile.am +++ b/gettext-tools/src/Makefile.am @@ -38,6 +38,9 @@ endif noinst_PROGRAMS = hostname urlget cldr-plurals noinst_SCRIPTS = spit.py +if !BUILD_SPIT_IN_C +noinst_SCRIPTS += spit +endif if INSTALL_PRIVATE_LIBRARIES # Specify that libgettextsrc should be installed in $(libdir). @@ -793,6 +796,16 @@ MAINTAINERCLEANFILES += cldr-plural.c cldr-plural.h EXTRA_DIST += cldr-plural.c cldr-plural.h +if !BUILD_SPIT_IN_C +# Ensure that the program 'spit' is available as a script, +# so that its manual page can be generated through 'help2man'. +spit: spit.py + cp spit.py spit +BUILT_SOURCES += spit +MOSTLYCLEANFILES += spit +endif + + # This is implicit in "make all", but is needed explicitly before other target # invocations. built-sources: $(BUILT_SOURCES)