Screens/TimerEdit.py: fix timerlist sort function (no more move disabled timers to...
[enigma2.git] / lib / python / Makefile.am
index dbcf489eb75b970b1a15df174330264aed28daa4..666ba67dae4009671bb936b44739dabe9e8c8e0f 100644 (file)
@@ -1,17 +1,45 @@
-INCLUDES = \
+AM_CPPFLAGS = \
+       -I$(top_srcdir) \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/include \
-       -I$(top_srcdir)/src
+       -include Python.h \
+       -include $(top_builddir)/enigma2_config.h
+
+SUBDIRS = Components Tools Screens Plugins
 
 noinst_LIBRARIES = libenigma_python.a
 
 libenigma_python_a_SOURCES = \
 
 noinst_LIBRARIES = libenigma_python.a
 
 libenigma_python_a_SOURCES = \
-       python.cpp enigma_python_wrap.cxx connections.cpp
+       connections.cpp \
+       python.cpp
+
+pythonincludedir = $(pkgincludedir)/lib/python
+pythoninclude_HEADERS = \
+       connections.h \
+       python.h \
+       swig.h
+
+nodist_libenigma_python_a_SOURCES = \
+       enigma_python.cpp
+
+noinst_PYTHON = \
+       enigma_py_patcher.py
+
+EXTRA_DIST = \
+       enigma_python.i
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enigma_python.Pcpp@am__quote@
+
+.i.cpp:
+       $(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -MT $@ -MD -MF $(DEPDIR)/$*.Tpo -I$(top_srcdir) -O -nortti -nothreads -o $@ $<
+       $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Pcpp
+       $(AM_V_at)$(PYTHON) $(srcdir)/enigma_py_patcher.py
+
+enigma.py: enigma_python.cpp
+
+CLEANFILES = enigma.py enigma_python.cpp
 
 
-enigma_python_wrap.cxx: enigma_python.i
-       swig -I$(top_srcdir)/ -c++ -python enigma_python.i
+installdir = $(pkglibdir)/python
 
 
-enigma_python.i: enigma_iobject.i
+install_PYTHON = \
+       enigma.py
 
 
-enigma_iobject.i:
-       find ../../.. -name "*.cpp" | xargs grep -h "DEFINE_REF" > enigma_iobject.i
-       
\ No newline at end of file