4369. [bug] Fix 'make' and 'make install' out-of-tree python

support. [RT #42484]

(cherry picked from commit d3600bb89d)
This commit is contained in:
Mark Andrews
2016-05-24 09:50:23 +10:00
parent 46be4d0401
commit 07d5d01182
3 changed files with 5 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ install:: ${TARGETS} installdirs
${INSTALL_SCRIPT} dnssec-coverage ${DESTDIR}${sbindir}
${INSTALL_DATA} ${srcdir}/dnssec-checkds.8 ${DESTDIR}${mandir}/man8
${INSTALL_DATA} ${srcdir}/dnssec-coverage.8 ${DESTDIR}${mandir}/man8
test -z "${PYTHON}" || ${PYTHON} setup.py install --prefix=${DESTDIR}${prefix}
test -z "${PYTHON}" || ${PYTHON} ${srcdir}/setup.py install --prefix=${DESTDIR}${prefix}
clean distclean::
rm -f ${TARGETS}

View File

@@ -26,7 +26,7 @@ PYTESTS = dnskey_test.py
check test:
for test in $(PYTESTS); do \
$(PYTHON) $$test; \
PYTHONPATH=${srcdir}/../.. $(PYTHON) ${srcdir}/$$test; \
done
clean distclean::