summaryrefslogtreecommitdiff
path: root/makefiles/gmake
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles/gmake')
-rw-r--r--makefiles/gmake/i18n.mk16
-rw-r--r--makefiles/gmake/platform.mk7
2 files changed, 19 insertions, 4 deletions
diff --git a/makefiles/gmake/i18n.mk b/makefiles/gmake/i18n.mk
index 013f5bd..660f62a 100644
--- a/makefiles/gmake/i18n.mk
+++ b/makefiles/gmake/i18n.mk
@@ -14,11 +14,9 @@
# - target: update-po
# - taget: check-po
-MSGFMT=msgfmt
-MSGMERGE=msgmerge
-XGETTEXT=xgettext
+.PHONY: init-po update-po all_po clean_po install_po
-.PHONY: init-po update-po
+ifeq "$(ENABLE_NLS)" "1"
PO_FILES = $(addprefix po/, $(addsuffix .po, $(GETTEXT_LANGUAGES)))
MO_FILES = $(addprefix po/, $(addsuffix .mo, $(GETTEXT_LANGUAGES)))
@@ -102,3 +100,13 @@ install_po:
# @cp test_gettext_de.mo locale/de_CH/LC_MESSAGES/test_gettext.mo
# @cp test_gettext_de.mo locale/de/LC_MESSAGES/test_gettext.mo
# @LANG=$(TEST_LANG) ./test_gettext >/dev/null 2>&1
+
+else
+
+# No NLS supported wanted, provide dummy targets
+
+all_po:
+clean_po:
+install_po:
+
+endif
diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk
index 0dd3be3..36d4d63 100644
--- a/makefiles/gmake/platform.mk
+++ b/makefiles/gmake/platform.mk
@@ -71,6 +71,13 @@ ENABLE_NLS = 1
ifeq "$(ENABLE_NLS)" "1"
+# we relly only on the GNU version, other versions (e.g. Solaris) are not
+# so nice..
+
+MSGFMT=msgfmt
+MSGMERGE=msgmerge
+XGETTEXT=xgettext
+
# the GNU internationalization support is sometimes in separate libarries
ifeq "$(PLATFORM)" "LINUX"
INCLUDE_FLAGS_LT =