summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f326dfbfc..ee0cfe3f9 100644
--- a/Makefile
+++ b/Makefile
@@ -108,6 +108,8 @@ else ifeq ($(UNAME), darwin)
else
OSSUPPORT = windows
OSSUPPORT_CFLAGS = $(GTK2CFLAGS)
+ WINDOWSSTAGING = ./packaging/windows
+ WINMSGDIRS=$(addprefix locale/,$(shell ls po/*.po | sed -e 's/po\/\(..\)_.*/\1\/LC_MESSAGES/'))
endif
ifneq ($(strip $(LIBXSLT)),)
@@ -160,6 +162,17 @@ install-macosx: $(NAME)
install $$MSG $(MACOSXINSTALL)/Contents/Resources/$$MSG;\
done
+install-cross-windows: $(NAME)
+ $(INSTALL) -d -m 755 $(WINDOWSSTAGING)/share/locale
+ for MSG in $(WINMSGDIRS); do\
+ $(INSTALL) -d -m 755 $(WINDOWSSTAGING)/share/$$MSG;\
+ $(INSTALL) $(CROSS_LOCALE_PATH)/$$MSG/* $(WINDOWSSTAGING)/share/$$MSG;\
+ done
+ for MSG in $(MSGOBJS); do\
+ $(INSTALL) -d -m 755 $$(dirname $(WINDOWSSTAGING)/share/$$MSG);\
+ $(INSTALL) $$MSG $(WINDOWSSTAGING)/share/$$MSG;\
+ done
+
file.o: file.c dive.h file.h
$(CC) $(CFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) $(XSLT) $(ZIP) -c file.c