From 7170af54acc61fca23e72fdce0cb04633515bcf2 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 9 Apr 2014 01:59:19 +0000 Subject: Tweak setup.py to conditionalize installation of rpki-ca scripts; move installation targets for Python library up from ca to top Makefile. svn path=/branches/tk685/; revision=5771 --- Makefile.in | 11 ++--- ca/Makefile.in | 2 - setup.py | 144 ++++++++++++++++++++++++++++++--------------------------- 3 files changed, 82 insertions(+), 75 deletions(-) diff --git a/Makefile.in b/Makefile.in index 7441cb19..d08cd298 100644 --- a/Makefile.in +++ b/Makefile.in @@ -29,6 +29,7 @@ RP_TARGET = @RP_TARGET@ CA_TARGET = @CA_TARGET@ SETUP_PY_INSTALL_LAYOUT = @SETUP_PY_INSTALL_LAYOUT@ +SETUP_PY_ROOT = `${PYTHON} -c 'import sys; print "--root " + sys.argv[1] if sys.argv[1] else ""' '${DESTDIR}'` POW_SO = rpki/POW/_POW.so @@ -98,12 +99,10 @@ rpki-distclean: @true rpki-install: - @false + ${PYTHON} setup.py install ${SETUP_PY_ROOT} ${SETUP_PY_INSTALL_LAYOUT} --record installed rpki-deinstall: - @false - -### + xargs rm -fv $@ -SETUP_PY_ROOT = `${PYTHON} -c 'import sys; print "--root " + sys.argv[1] if sys.argv[1] else ""' '${DESTDIR}'` - .FORCE: ${POW_SO}: .FORCE setup_autoconf.py diff --git a/ca/Makefile.in b/ca/Makefile.in index 8da54712..3d69b760 100644 --- a/ca/Makefile.in +++ b/ca/Makefile.in @@ -41,7 +41,6 @@ clean:: install:: ${CA_INSTALL_TARGETS} install-always:: all - ${PYTHON} setup.py install ${SETUP_PY_ROOT} ${SETUP_PY_INSTALL_LAYOUT} --record installed @echo @echo "== Default configuration file location is ${sysconfdir}/rpki.conf ==" @echo @@ -50,7 +49,6 @@ install-always:: all uninstall deinstall:: -${libexecdir}/rpkigui-apache-conf-gen --remove --verbose - xargs rm -fv