further updates to the build system, generate enigma2.sh
[vuplus_dvbapp] / lib / actions / Makefile.am
index cdaf2a7..83f57d3 100644 (file)
@@ -1,13 +1,24 @@
-INCLUDES = \
-       -I$(top_srcdir)/include
+AM_CPPFLAGS = \
+       -I$(top_builddir) \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/include \
+       -include Python.h \
+       -include $(top_builddir)/enigma2_config.h
 
-noinst_LIBRARIES = libenigma_actions.a
+EXTRA_DIST = parseactions.py
 
-libenigma_actions_a_SOURCES = \
-       action.cpp 
+noinst_LTLIBRARIES = libenigma_actions.la
 
-action.cpp: actionids.h
+libenigma_actions_la_SOURCES = \
+       action.cpp \
+       action.h
 
-actionids.h:
-        python ./parseactions.py include ../gui/*.h > actionids.h
-        python ./parseactions.py parse ../gui/*.h >> actionids.h
+nodist_libenigma_actions_la_SOURCES = \
+       actionids.h
+
+BUILT_SOURCES = actionids.h
+CLEANFILES = actionids.h
+
+actionids.h: $(srcdir)/parseactions.py $(top_srcdir)/lib/gui/*.h
+       $(PYTHON) $(srcdir)/parseactions.py include $(top_srcdir)/lib/gui/*.h > $@
+       $(PYTHON) $(srcdir)/parseactions.py parse $(top_srcdir)/lib/gui/*.h >> $@