9b6033c7c1a540ade66c9917211618b52ae32f0f
[vuplus_dvbapp] / lib / python / Plugins / SystemPlugins / TransCodingSetup / locale / Makefile.am
1 PLUGIN = TransCodingSetup
2 LANGS = de
3
4 CATEGORY ?= "SystemPlugins"
5
6 plugindir = $(libdir)/enigma2/python/Plugins/$(CATEGORY)/$(PLUGIN)
7
8 LANGMO = $(LANGS:=.mo)
9 LANGPO = $(LANGS:=.po)
10
11 .po.mo:
12         $(MSGFMT) -o $@ $<
13
14 BUILT_SOURCES = $(LANGMO)
15 CLEANFILES = $(LANGMO) $(PLUGIN)-py.pot $(PLUGIN)-xml.pot $(PLUGIN).pot
16
17 dist-hook: $(LANGPO)
18
19 install-data-local: $(LANGMO)
20         for lang in $(LANGS); do \
21                 $(mkinstalldirs) $(DESTDIR)$(plugindir)/locale/$$lang/LC_MESSAGES; \
22                 $(INSTALL_DATA) $$lang.mo $(DESTDIR)$(plugindir)/locale/$$lang/LC_MESSAGES/$(PLUGIN).mo; \
23         done
24
25 uninstall-local:
26         for lang in $(LANGS); do \
27                 $(RM) $(DESTDIR)$(plugindir)/locale/$$lang/LC_MESSAGES/$(PLUGIN).mo; \
28         done