summaryrefslogtreecommitdiff
path: root/tools/quick_dump
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-11-05 15:58:54 +0000
committerThomas Wood <thomas.wood@intel.com>2014-11-06 10:21:50 +0000
commit86bb6072a6e104e59ebbea2b41d4d86aeed134dc (patch)
tree960987b9fcaec8dbdc8ea7d7d1f0b734cb0a245e /tools/quick_dump
parent2c44d6316a15170a5e2897488729f3d6868e0a1c (diff)
tools/quick_dump: don't include generated sources in the distribution
This also ensures that "make dist" works even if SWIG is not available. BUILT_SOURCES is not required because the files are already explicit dependencies of other rules. v2: make sure SWIG is not invoked with the incorrect output filename Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tools/quick_dump')
-rw-r--r--tools/quick_dump/Makefile.am11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/quick_dump/Makefile.am b/tools/quick_dump/Makefile.am
index e7e1f629..641066de 100644
--- a/tools/quick_dump/Makefile.am
+++ b/tools/quick_dump/Makefile.am
@@ -1,13 +1,12 @@
AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_builddir)/lib $(PYTHON_CPPFLAGS) $(DRM_CFLAGS) $(CAIRO_CFLAGS) -I$(top_srcdir)
-BUILT_SOURCES = chipset_wrap_python.c
-
dist_bin_SCRIPTS = quick_dump.py reg_access.py
bin_SCRIPTS = chipset.py
lib_LTLIBRARIES = I915ChipsetPython.la
I915ChipsetPython_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS)
-I915ChipsetPython_la_SOURCES = chipset_wrap_python.c chipset_macro_wrap.c
+I915ChipsetPython_la_SOURCES = chipset_macro_wrap.c
+nodist_I915ChipsetPython_la_SOURCES = chipset_wrap_python.c
I915ChipsetPython_la_LIBADD = \
$(top_builddir)/lib/libintel_tools.la \
$(PCIACCESS_LIBS) \
@@ -15,7 +14,9 @@ I915ChipsetPython_la_LIBADD = \
$(CAIRO_LIBS) \
$(NULL)
-chipset_wrap_python.c chipset.py: chipset.i
+chipset.py: chipset_wrap_python.c
+
+chipset_wrap_python.c: chipset.i
$(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -I/usr/include -I$(top_srcdir)/lib -o $@ $<
all-local: I915ChipsetPython.la
@@ -26,4 +27,4 @@ EXTRA_DIST = $(QUICK_DUMP_EXTRA_DIST) \
base_interrupt.txt base_other.txt base_power.txt base_rings.txt \
quick_dump.py \
reg_access.py \
- chipset.i chipset.py
+ chipset.i