summaryrefslogblamecommitdiffstats
path: root/Makefile
blob: cbbda65b35bc8f387c57df0548867da7b16e6301 (plain) (tree)










































                                                                             
# (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)