remove obsolete .cvsignore files
[enigma2.git] / Makefile.am
index f0807b7a9a90fe2b892d003c15d1e49d5d299e66..38e8ab2d5ea0f385a1a91b482581732c117d45f5 100644 (file)
@@ -1,9 +1,15 @@
-AUTOMAKE_OPTIONS = gnu
+SUBDIRS = include lib main data po tools
 
-SUBDIRS = lib main data
+installdir = $(pkglibdir)/python
 
-installdir = $(LIBDIR)/enigma2/python
+install_PYTHON = \
+       Navigation.py NavigationInstance.py RecordTimer.py SleepTimer.py ServiceReference.py \
+       keyids.py keymapparser.py mytest.py skin.py timer.py tools.py GlobalActions.py \
+       e2reactor.py
 
-install_DATA = \
-       Navigation.py NavigationInstance.py RecordTimer.py ServiceReference.py \
-       keyids.py keymapparser.py mytest.py skin.py timer.py tools.py
+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