[chronojump] Fix Translation Makefiles
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [chronojump] Fix Translation Makefiles
- Date: Wed, 12 Aug 2009 14:01:53 +0000 (UTC)
commit fbf238be3fc0c8e7738ffa8c75ceeae624c51f7a
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Aug 12 15:58:56 2009 +0200
Fix Translation Makefiles
po/Makefile.am | 69 +++++++++++++++++++++++++++++--------------------------
1 files changed, 36 insertions(+), 33 deletions(-)
---
diff --git a/po/Makefile.am b/po/Makefile.am
index 2229e1a..906615b 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -1,45 +1,48 @@
-EXTRA_DIST =
-##########libchronopic.so##########
+EXTRA_DIST =
-AM_CPPFLAGS = \
- -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
- -DPACKAGE_DATA_DIR=\""$(datadir)"\"
-AM_CFLAGS =\
- -Wall\
- -g
+CLEANFILES = $(GMO_FILES)
-lib_LTLIBRARIES = \
- libchronopic.la
-
-libchronopic_la_SOURCES = \
- chronopic.h\
- chronopic.c
-
-
-##########Test Accuracy##########
-
-bin_PROGRAMS=test-accuracy
-test_accuracy_SOURCES=test-precision.c
-test_accuracy_LDADD=libchronopic.la
-
-##########Test Jumps##########
-
-bin_PROGRAMS+=test-jumps
-test_jumps_SOURCES=test-saltos.c
-test_jumps_LDADD=libchronopic.la
-
-##########Test Stream##########
-
-bin_PROGRAMS+=test-stream
-test_stream_SOURCES=test-tramas.c termansi.h termansi.c
-test_stream_LDADD=libchronopic.la
+include $(top_srcdir)/Makefile.include
+PACKAGE = @PACKAGE@
+BUILD_DIR = GMO
+INSTALL_DIR = $(prefix)/share/locale
+FILES = \
+ ar.po\
+ ca.po\
+ dz.po\
+ en_GB.po\
+ es.po\
+ fi.po\
+ fr.po\
+ nb.po\
+ oc.po\
+ pt.po\
+ pt_BR.po\
+ sv.po\
+ vi.po\
+ zh_CN.po
+GMO_FILES = $(patsubst %.po,$(BUILD_DIR)/%.gmo,$(FILES))
+MO_FILES = $(foreach po,$(FILES), $(INSTALL_DIR)/$(basename $(po))/LC_MESSAGES/$(PACKAGE).mo)
+all: $(GMO_FILES)
+install: $(MO_FILES)
+uninstall:
+ for lang in $(basename $(FILES)); do \
+ rm -f $(INSTALL_DIR)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
+ done
+$(GMO_FILES): $(BUILD_DIR)/%.gmo: %.po
+ mkdir -p $(BUILD_DIR)
+ msgfmt '$<' -o '$@'
+
+$(MO_FILES): $(INSTALL_DIR)/%/LC_MESSAGES/$(PACKAGE).mo : $(BUILD_DIR)/%.gmo
+ mkdir -p $(dir $@)
+ @INSTALL_DATA@ '$<' '$@'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]