X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7ff071c7f0df631ca273d7f29472f8b5568818f9..HEAD:/lib/actions/Makefile.am diff --git a/lib/actions/Makefile.am b/lib/actions/Makefile.am index 05a50884..eb8327d7 100644 --- a/lib/actions/Makefile.am +++ b/lib/actions/Makefile.am @@ -1,15 +1,27 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_builddir) \ + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h \ + -include $(top_builddir)/enigma2_config.h + +EXTRA_DIST = parseactions.py noinst_LIBRARIES = libenigma_actions.a libenigma_actions_a_SOURCES = \ - action.cpp + action.cpp -CLEANFILES = actionids.h +actionsincludedir = $(pkgincludedir)/lib/actions +actionsinclude_HEADERS = \ + action.h -action.cpp: actionids.h +nodist_actionsinclude_HEADERS = \ + actionids.h + +BUILT_SOURCES = actionids.h +CLEANFILES = actionids.h -actionids.h: - python ./parseactions.py include ../gui/*.h > actionids.h - python ./parseactions.py parse ../gui/*.h >> actionids.h +actionids.h: $(srcdir)/parseactions.py $(top_srcdir)/lib/gui/*.h + $(AM_V_GEN)$(PYTHON) $(srcdir)/parseactions.py include $(top_srcdir)/lib/gui/*.h > $@ + $(AM_V_at)$(PYTHON) $(srcdir)/parseactions.py parse $(top_srcdir)/lib/gui/*.h >> $@