summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2012-10-17 08:46:59 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-17 00:04:18 -0700
commit9c62e223d331543f915b8819385348c466de3c14 (patch)
tree53728f720fc5f28b1062d6ad1984435113859434 /Makefile
parent40ae90920a04f9797df986d1aea96d4b3ec2789a (diff)
downloadsubsurface-9c62e223d331543f915b8819385348c466de3c14.tar.gz
Install all .mo files on all targets
Linux didn't have a locale install target, and Windows didn't install aliased locale files. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1f907892c..9275561b7 100644
--- a/Makefile
+++ b/Makefile
@@ -150,6 +150,11 @@ install: $(NAME)
$(INSTALL) -d -m 755 $(XSLTDIR); \
$(INSTALL) -m 644 $(XSLTFILES) $(XSLTDIR); \
fi
+ for LOC in $(wildcard share/locale/*/LC_MESSAGES); do \
+ $(INSTALL) -d -m 755 $(prefix)/$$LOC; \
+ $(INSTALL) $$LOC/subsurface.mo $(prefix)/$$LOC/subsurface.mo; \
+ done
+
install-macosx: $(NAME)
$(INSTALL) -d -m 755 $(MACOSXINSTALL)/Contents/Resources
@@ -184,9 +189,9 @@ install-cross-windows: $(NAME)
$(INSTALL) -d -m 755 $(WINDOWSSTAGING)/$$MSG;\
$(INSTALL) $(CROSS_PATH)/$$MSG/* $(WINDOWSSTAGING)/$$MSG;\
done
- for MSG in $(MSGOBJS); do\
- $(INSTALL) -d -m 755 $$(dirname $(WINDOWSSTAGING)/$$MSG);\
- $(INSTALL) $$MSG $(WINDOWSSTAGING)/$$MSG;\
+ for LOC in $(wildcard share/locale/*/LC_MESSAGES); do \
+ $(INSTALL) -d -m 755 $(WINDOWSSTAGING)/$$LOC; \
+ $(INSTALL) $$LOC/subsurface.mo $(WINDOWSSTAGING)/$$LOC/subsurface.mo; \
done
file.o: file.c dive.h file.h