diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-18 13:40:56 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-18 13:40:56 +0100 |
commit | fea8be0ec6cead21a787a424feacc7a45398e630 (patch) | |
tree | 91938fd756f93c3ba9fc17ebbe62fcf575651783 /makefiles | |
parent | da1b50e2830452d08649c7c71ce07367b9ad75e6 (diff) | |
download | wolfbones-fea8be0ec6cead21a787a424feacc7a45398e630.tar.gz wolfbones-fea8be0ec6cead21a787a424feacc7a45398e630.tar.bz2 |
more cleanup in i18n.mk and platform.mk
Diffstat (limited to 'makefiles')
-rw-r--r-- | makefiles/gmake/i18n.mk | 16 | ||||
-rw-r--r-- | makefiles/gmake/platform.mk | 7 |
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 = |