summaryrefslogtreecommitdiff
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
commit85bd34f3a50a8d06ea741909846d4470478978a8 (patch)
treeb516ff7b9a607c6ed8bb61095912ac0dca685b31
parent6f896c503de29fc321cb195f37ce929c1bb3843d (diff)
i18n: Add Makefile builder
-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 @@
1# (c) 2009 Bertrand Jacquin <beber@meleeweb.net>
2
3NAME = enlightenment
4
5# Source files
6SRC = \
7 br.po
8
9# Install dir
10prefix = /usr/local
11localedir = $(prefix)/share/locale
12
13# Outputs
14OBJMO = $(SRC:po=mo)
15
16# Programs to use
17MSGFMTPRG = msgfmt
18MSGFMTOPT = -c -v
19
20INSTALLPRG = install
21INSTALLOPT = -p -m 444 -D
22
23RM = rm -f
24
25# Default build
26all: mo
27
28mo: $(OBJMO)
29
30# Build
31%.mo %.gmo: %.po
32 $(MSGFMTPRG) $(MSGFMTOPT) -o $@ $<
33
34# Install
35install: $(OBJMO)
36 $(MAKE) $(addprefix install-, $^)
37
38install-%.mo: $(OBJMO)
39 $(INSTALLPRG) $(INSTALLOPT) $< $(localedir)/$*/LC_MESSAGES/$(NAME).mo
40
41# Clean
42clean:
43 -$(RM) $(OBJMO)