summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2012-10-15 14:44:01 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-15 09:36:30 -0700
commitef039c9d32e998af3ceab21673a51169f6e4f1ed (patch)
treeeafa830236c22de20faa1fd050c26a3d5a47825b /Makefile
parent5c432d3c8afdb7b98ef385b5bde04bc5aea1c5cf (diff)
downloadsubsurface-ef039c9d32e998af3ceab21673a51169f6e4f1ed.tar.gz
Support for gettext in MacOSX application bundle
The MacOSX applications bundle needs to be told where to bind the text domain from. Also copy the gettext .mo files in the install-macosx target. [Dirk Hohndel: minor change in main(): move the path declaration to the beginning of the function] 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--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e747c5a3b..af2284f96 100644
--- a/Makefile
+++ b/Makefile
@@ -154,6 +154,10 @@ install-macosx: $(NAME)
$(INSTALL) $(MACOSXFILES)/Info.plist $(MACOSXINSTALL)/Contents/
$(INSTALL) $(ICONFILE) $(MACOSXINSTALL)/Contents/Resources/
$(INSTALL) $(MACOSXFILES)/Subsurface.icns $(MACOSXINSTALL)/Contents/Resources/
+ $(INSTALL) -d -m 755 $(addprefix $(MACOSXINSTALL)/Contents/Resources/,$(dir $(MSGOBJS)))
+ for MSG in $(MSGOBJS); do\
+ install $$MSG $(MACOSXINSTALL)/Contents/Resources/$$MSG;\
+ done
file.o: file.c dive.h file.h
$(CC) $(CFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) $(XSLT) $(ZIP) -c file.c