summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Kendrick (monotony) <rjek@netsurf-browser.org>2012-11-03 11:16:33 +0000
committerRob Kendrick (monotony) <rjek@netsurf-browser.org>2012-11-03 11:16:33 +0000
commit118b03a7864cd747ee89800180867452de3f5549 (patch)
treedf98af2481bfc34838983b40c28c16cb63f08e20 /Makefile
parentde074a3ada6810f335f5cd106bdcdc5299ec4854 (diff)
downloadnetsurf-118b03a7864cd747ee89800180867452de3f5549.tar.gz
netsurf-118b03a7864cd747ee89800180867452de3f5549.tar.bz2
Add a macro to split and install messages files, and have gtk front end use it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 931f07b69..ecd06874c 100644
--- a/Makefile
+++ b/Makefile
@@ -644,6 +644,15 @@ clean: $(CLEANS)
# Target builds a distribution package
package: all-program package-$(TARGET)
+FAT_LANGUAGES=de en fr it nl
+# 1 = front end name (gtk, ro, ami, etc)
+# 2 = Destination directory (where resources being installed, creates en/Messages etc)
+define split_install_messages
+ $(foreach LANG, $(FAT_LANGUAGES), @echo MSGSPLIT: $(1)/$(LANG) to $(2)
+ $(Q)$(PERL) utils/split-messages.pl $(LANG) $(1) < resources/FatMessages > $(2)/$(LANG)/Messages
+ )
+endef
+
# Target installs executable on the host system
install: all-program install-$(TARGET)