fix install rules for index-enigma2.xml
authorAndreas Oberritter <obi@opendreambox.org>
Thu, 28 Oct 2010 18:06:40 +0000 (20:06 +0200)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 16 Nov 2010 16:09:12 +0000 (17:09 +0100)
Makefile.am

index 19b44e47196709fc97c35af40ba56a1f5f035294..6935fa6d70919445cbbaf87a5c202af41189c9df 100755 (executable)
@@ -3,14 +3,16 @@ SUBDIRS = include lib main data po tools
 ACLOCAL_AMFLAGS = -I m4
 
 installdir = $(pkglibdir)/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-exec-hook:
-               $(PYTHON) $(srcdir)/tools/genmetaindex.py $(DESTDIR)$(datadir)/meta/plugin_*.xml > $(DESTDIR)$(datadir)/meta/index-enigma2.xml
+metadir = $(datadir)/meta
+meta_DATA = index-enigma2.xml
+CLEANFILES = index-enigma2.xml
+
+EXTRA_DIST = lamedb
 
-uninstall-hook:
-       $(RM) $(DESTDIR)$(datadir)/meta/index-enigma2.xml
+index-enigma2.xml: $(top_srcdir)/tools/genmetaindex.py $(top_srcdir)/lib/python/Plugins/*/*/meta/plugin_*.xml
+       $(PYTHON) $^ > $@