summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2017-03-08 00:54:31 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2017-03-08 00:56:04 (GMT)
commit6fc3ef9e6fe62871ec3cdf25f35295fd35bf6fc7 (patch)
treeb0186e9a2250bc640af24d07bdfc783a1d1b7f99
parentddbe4b7a3756356bfb6af3ebd6ee39a5fe592da5 (diff)
downloadcoreutils-6fc3ef9e6fe62871ec3cdf25f35295fd35bf6fc7.zip
coreutils-6fc3ef9e6fe62871ec3cdf25f35295fd35bf6fc7.tar.gz
coreutils-6fc3ef9e6fe62871ec3cdf25f35295fd35bf6fc7.tar.bz2
build: fix 'install-html' target
Switching to non-recursive makefiles broke the 'install-html' target: The gettext plumbing requires an 'install-html' target in po/Makefile. This was fixed in gettext v0.19.8.1-41-ge5a008a, but packages using older gettext need to manually patch po/Makefile.in.in. Reported (for 'sed') and suggested fix by Eric Blake in https://bugs.gnu.org/25690 . * bootstrap.conf (bootstrap_epilogue): Add 'install-{html,pdf,dvi,ps}' targets to po/Makefile.in.in (if needed).
-rw-r--r--bootstrap.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index dd93c08..7def1f9 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -376,6 +376,13 @@ bootstrap_epilogue()
perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
po/Makefile.in.in
+ # Add dummy 'install-html' target, required for packages using
+ # non-recursive makefiles with older gettext.
+ # See https://debbugs.gnu.org/25690
+ if ! grep -w 'install-html' po/Makefile.in.in ; then
+ printf 'install-%s:;\n' dvi ps pdf html >> po/Makefile.in.in
+ fi
+
# Install our git hooks, as long as "cp" accepts the --backup option,
# so that we can back up any existing files.
case $(cp --help) in *--backup*) backup=1;; *) backup=0;; esac