diff options
-rw-rw-r--r-- | Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Makefile b/ 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) |