X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ce21a1444df4cce5308ac69deaae903b82994e36..86d0f1d05eea8098b32897eb0cffc18c6a861be1:/Makefile.am diff --git a/Makefile.am b/Makefile.am old mode 100644 new mode 100755 index 69f0c775..c517d9c5 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = lib main data po tools +SUBDIRS = include lib main data po tools installdir = $(pkglibdir)/python @@ -7,9 +7,12 @@ install_PYTHON = \ keyids.py keymapparser.py mytest.py skin.py timer.py tools.py GlobalActions.py \ e2reactor.py -LANGS := ar ca cs da de el en es fi fr fy hr hu is it lt lv nl no pl pt ru sv sk sl sr tr uk +LANGS := $(shell cat $(srcdir)/po/LINGUAS) install-exec-hook: - for lang in ${LANGS}; do \ - python $(srcdir)/tools/genmetaindex.py $$lang $(DESTDIR)$(pkgdatadir)/meta/enigma2/plugin_*.xml > $(DESTDIR)$(pkgdatadir)/meta/enigma2/index_$$lang.xml; \ - done; + for lang in $(LANGS); do \ + $(PYTHON) $(srcdir)/tools/genmetaindex.py $$lang $(DESTDIR)$(datadir)/meta/plugin_*.xml > $(DESTDIR)$(datadir)/meta/index-enigma2_$$lang.xml; \ + done + +uninstall-hook: + $(RM) $(DESTDIR)$(datadir)/meta/index-enigma2_*.xml