changeset 168:f687155dcb7c

build: allow dist and distcheck targets to work * Makefile.am (EXTRA_DIST): Include oct file sources in the list. (check-local): Handle vpath builds.
author Mike Miller <mtmiller@octave.org>
date Wed, 06 Apr 2016 16:32:38 -0700
parents f31a5f5b5269
children 0f39067dd8d9
files Makefile.am
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.am	Wed Apr 06 15:21:51 2016 -0700
+++ b/Makefile.am	Wed Apr 06 16:32:38 2016 -0700
@@ -38,6 +38,8 @@
   pyeval.oct \
   pyexec.oct
 
+OCT_SOURCES = $(patsubst %.oct, %.cc, $(OCT_FILES))
+
 PYTAVE_HEADER_FILES = \
   arrayobjectdefs.h \
   config.h \
@@ -51,7 +53,7 @@
   test/exceptions.py \
   test/test.py
 
-EXTRA_DIST = $(DOC_FILES) $(PY_FILES)
+EXTRA_DIST = $(DOC_FILES) $(OCT_SOURCES) $(PY_FILES)
 
 EXTRA_libdir = $(PYTAVE_MODULE_INSTALL_PATH)
 EXTRA_lib_LTLIBRARIES = _pytave.la
@@ -96,5 +98,5 @@
 	@echo ""
 
 check-local:
-	PYTHONPATH="$$(pwd)/package:$$(pwd)/.libs" $(PYTHON) test/exceptions.py
-	PYTHONPATH="$$(pwd)/package:$$(pwd)/.libs" $(PYTHON) test/test.py
+	PYTHONPATH="$(abs_srcdir)/package:$$(pwd)/package:$$(pwd)/.libs" $(PYTHON) $(srcdir)/test/exceptions.py
+	PYTHONPATH="$(abs_srcdir)/package:$$(pwd)/package:$$(pwd)/.libs" $(PYTHON) $(srcdir)/test/test.py