summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2017-08-13 21:34:17 +0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-08-16 23:09:24 +0200
commit58ae0b35ed8fa0411757fa21fde66bf067e348f5 (patch)
treef04028c33dfbb92d6fb8ac6ac6ffc8aa9f27a0a4
parent11089e20624052dbef4c3960713ba3c8b5ddc30c (diff)
downloadbuildroot-58ae0b35ed8fa0411757fa21fde66bf067e348f5.tar.gz
buildroot-58ae0b35ed8fa0411757fa21fde66bf067e348f5.zip
whois: fix build with NLS disabled
whois build uses the xgettext utility to build translation files. This utility may not be available when NLS is disabled. Omit the pos and install-pos Makefile targets from the default and the install targets when NLS is disabled, respectively. Fixes: http://autobuild.buildroot.net/results/862/862d8165a59711c970c65d90009a527315a1a6b4/ http://autobuild.buildroot.net/results/b62/b62ec9d6f350e409731d47ffb585344c516944e8/ http://autobuild.buildroot.net/results/be2/be28d06ae004a46c87133d6f07709c6f909288d8/ Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/whois/whois.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/package/whois/whois.mk b/package/whois/whois.mk
index f22446b839..22117cf3aa 100644
--- a/package/whois/whois.mk
+++ b/package/whois/whois.mk
@@ -27,13 +27,22 @@ WHOIS_DEPENDENCIES += libidn
WHOIS_MAKE_ENV += HAVE_LIBIDN=1
endif
+ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
+WHOIS_BUILD_TARGETS =
+WHOIS_INSTALL_TARGETS = install
+else
+WHOIS_BUILD_TARGETS = Makefile.depend whois mkpasswd
+WHOIS_INSTALL_TARGETS = install-whois install-mkpasswd
+endif
+
define WHOIS_BUILD_CMDS
- $(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) -C $(@D)
+ $(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
+ $(WHOIS_BUILD_TARGETS) -C $(@D)
endef
define WHOIS_INSTALL_TARGET_CMDS
$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
- BASEDIR="$(TARGET_DIR)" install -C $(@D)
+ BASEDIR="$(TARGET_DIR)" $(WHOIS_INSTALL_TARGETS) -C $(@D)
endef
$(eval $(generic-package))
OpenPOWER on IntegriCloud