summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: cbbda65b35bc8f387c57df0548867da7b16e6301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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)