summaryrefslogtreecommitdiff
blob: 1616e933664e8c30ed27262edcb8f4435fee3c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -4,8 +4,8 @@
 # Created by Linas Vepstas February 2014
 #
 #
-SWIG_SOURCES = ../swig/link_grammar.i
-SWIG_INCLUDES = ../../link-grammar/link-includes.h
+SWIG_SOURCES = $(top_srcdir)/bindings/swig/link_grammar.i
+SWIG_INCLUDES = $(top_srcdir)/link-grammar/link-includes.h
 built_c_sources = lg_python_wrap.cc
 built_py_sources = $(top_builddir)/bindings/python/clinkgrammar.py
 
@@ -18,16 +18,16 @@
 
 # Files that get installed in $pkgpythondir
 pkgpython_PYTHON =                                 \
-   linkgrammar.py                                  \
+   $(srcdir)/linkgrammar.py                        \
    $(top_builddir)/bindings/python/__init__.py     \
-   $(top_builddir)/bindings/python/clinkgrammar.py
+   $(built_py_sources)
 
 # Apparently, anaconda does not work without this!?
 # This seems wrong and lame to me, but see issue #298
 # https://github.com/opencog/link-grammar/issues/298
 pkgpypathdir=$(pythondir)
 pkgpypath_PYTHON =                                 \
-   linkgrammar.pth
+   $(srcdir)/linkgrammar.pth
 
 # The make uninstall target should remove directories we created.
 uninstall-hook: