correctly install message catalogs
This commit is contained in:
parent
af99f8cbf3
commit
ec3ae7cc71
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-Makefile,v 1.3 2009/12/17 17:11:00 ajacoutot Exp $
|
||||
$OpenBSD: patch-Makefile,v 1.4 2009/12/20 21:13:31 naddy Exp $
|
||||
--- Makefile.orig Fri May 29 00:08:08 2009
|
||||
+++ Makefile Thu Dec 17 17:44:16 2009
|
||||
+++ Makefile Sun Dec 20 22:09:37 2009
|
||||
@@ -20,7 +20,6 @@ VER_DATE=`date +"%Y-%m-%d"`
|
||||
|
||||
# Where to install things:
|
||||
@ -158,15 +158,13 @@ $OpenBSD: patch-Makefile,v 1.3 2009/12/17 17:11:00 ajacoutot Exp $
|
||||
@echo Compiling defaults.cxx
|
||||
$(CXX) $(ALL_CFLAGS) -c src/defaults.cxx -o obj/defaults.o
|
||||
|
||||
@@ -340,7 +298,10 @@ MOFILES:=$(patsubst src/po/%.po,trans/%.mo,$(POFILES))
|
||||
@@ -340,7 +298,8 @@ MOFILES:=$(patsubst src/po/%.po,trans/%.mo,$(POFILES))
|
||||
INSTALLED_MOFILES:=$(patsubst trans/%.mo,$(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint-config.mo,$(MOFILES))
|
||||
|
||||
$(INSTALLED_MOFILES): $(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint-config.mo: trans/%.mo
|
||||
- install -D -m 644 $< $@
|
||||
+ for i in src/po/*.po ; do \
|
||||
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/locale/`basename $${i} .po`/LC_MESSAGES ; \
|
||||
+ ${BSD_INSTALL_DATA} trans/`basename $${i} .po`.mo \
|
||||
+ ${PREFIX}/share/locale/`basename $${i} .po`/LC_MESSAGES/ ; done
|
||||
+ $(BSD_INSTALL_DATA_DIR) $(@D)
|
||||
+ $(BSD_INSTALL_DATA) $< $@
|
||||
|
||||
.PHONY: uninstall-i18n
|
||||
uninstall-i18n:
|
||||
|
Loading…
Reference in New Issue
Block a user