summaryrefslogtreecommitdiff'>stats
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2009-12-09 03:25:15 +0100
committerBertrand Jacquin <beber@meleeweb.net>2009-12-09 03:25:15 +0100
commit'>85bd34f3a50a8d06ea741909846d4470478978a8 ( (patch)
treeb516ff7b9a607c6ed8bb61095912ac0dca685b31
parent'>i18n: start translation ('>diff)
downloadbr-master.tar.gz
i18n: Add Makefile builderHEADmaster
-rw-r--r--Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cbbda65
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,43 @@
+# (c) 2009 Bertrand Jacquin <beber@meleeweb.net>
+
+NAME = enlightenment
+
+# Source files
+SRC = \
+ br.po
+
+# Install dir
+prefix = /usr/local
+localedir = $(prefix)/share/locale
+
+# Outputs
+OBJMO = $(SRC:po=mo)
+
+# Programs to use
+MSGFMTPRG = msgfmt
+MSGFMTOPT = -c -v
+
+INSTALLPRG = install
+INSTALLOPT = -p -m 444 -D
+
+RM = rm -f
+
+# Default build
+all: mo
+
+mo: $(OBJMO)
+
+# Build
+%.mo %.gmo: %.po
+ $(MSGFMTPRG) $(MSGFMTOPT) -o $@ $<
+
+# Install
+install: $(OBJMO)
+ $(MAKE) $(addprefix install-, $^)
+
+install-%.mo: $(OBJMO)
+ $(INSTALLPRG) $(INSTALLOPT) $< $(localedir)/$*/LC_MESSAGES/$(NAME).mo
+
+# Clean
+clean:
+ -$(RM) $(OBJMO)