aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-04-23 23:20:26 +0200
committerLudovic Courtès <ludo@gnu.org>2020-04-23 23:59:23 +0200
commit62bc3c5b04d43ccd24922e45b79fab00f7298e10 (patch)
treef45962c920fe9f5b80e6457f94f0875831b56116 /doc
parentd9e83f2a6460d9716b5dc93cf61ac120c10f6906 (diff)
downloadguix-62bc3c5b04d43ccd24922e45b79fab00f7298e10.tar
guix-62bc3c5b04d43ccd24922e45b79fab00f7298e10.tar.gz
build: Don't build man pages when cross-compiling.
* configure.ac: Define 'CROSS_COMPILING' Automake conditional. * doc/local.mk (dist_man1_MANS): Wrap in "if !CROSS_COMPILING".
Diffstat (limited to 'doc')
-rw-r--r--doc/local.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/local.mk b/doc/local.mk
index 0d8e95802c..ddda01d5f3 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -1,6 +1,6 @@
# GNU Guix --- Functional package management for GNU
# Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
-# Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
+# Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
# Copyright © 2013 Andreas Enge <andreas@enge.fr>
# Copyright © 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
# Copyright © 2016, 2018 Mathieu Lirzin <mthl@gnu.org>
@@ -202,10 +202,15 @@ sub_commands_mans = \
$(srcdir)/%D%/guix-time-machine.1 \
$(srcdir)/%D%/guix-weather.1
+# Assume that cross-compiled commands cannot be executed.
+if !CROSS_COMPILING
+
dist_man1_MANS = \
$(srcdir)/%D%/guix.1 \
$(sub_commands_mans)
+endif
+
gen_man = \
LANGUAGE= $(top_builddir)/pre-inst-env $(HELP2MAN) \
$(HELP2MANFLAGS)
@@ -227,6 +232,7 @@ $(srcdir)/%D%/guix-%.1: guix/scripts/%.scm $(GOBJECTS)
esac
if BUILD_DAEMON
+if !CROSS_COMPILING
dist_man1_MANS += $(srcdir)/%D%/guix-daemon.1
@@ -234,3 +240,4 @@ $(srcdir)/%D%/guix-daemon.1: nix/nix-daemon/guix-daemon.cc
-$(AM_V_HELP2MAN)$(gen_man) --output="$@" `basename "$@" .1`
endif
+endif