lilypond-1.0.19
[lilypond.git] / po / Makefile
blobe0c550371e308a8587e98ef440b0a6e37f1db917
1 # title makefile for po
2 # file po/Makefile
4 depth = ..
6 NAME = lilypond
7 MODULE_NAME = po
9 PO_FILES = $(wildcard *.po)
10 MO_FILES = $(addprefix $(outdir)/, $(PO_FILES:.po=.mo))
11 HELP_CATALOGS = $(PO_FILES:%.po=%)
12 CATALOGS = $(HELP_CATALOGS:lilypond=)
13 EXTRA_DIST_FILES = TODO $(PO_FILES)
15 include $(depth)/make/Stepmake.make
16 include $(stepdir)/Po_rules.make
18 default: $(MO_FILES)
20 localinstall: $(MO_FILES)
21 for i in $(CATALOGS); do \
22 $(INSTALL) -d $(localedir)/$$i/LC_MESSAGES; \
23 $(INSTALL) -m 644 $(outdir)/$$i.mo \
24 $(localedir)/$$i/LC_MESSAGES/$(package).mo; \
25 done
27 localuninstall:
28 for i in $(CATALOGS); do \
29 rm -f $(localedir)/$$i/LC_MESSAGES/$(package).mo; \
30 rmdir $(localedir)/$$i/LC_MESSAGES || true; \
31 done