aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2011-01-22 23:06:02 +0000
committerRob Austein <sra@hactrn.net>2011-01-22 23:06:02 +0000
commite13f872df973ecc5a323088c7b44757e892dd350 (patch)
tree9d5f0d51280e25d45afd5cdff964012a6d90f9a1
parenta1cef9518a7c5d5ce1a01dec02bf5e15fb37436a (diff)
Trying to guess what we might have installed after the fact is too
flakey, given all the whacky "custom layout" hacks added to distutils by Debian-derived releases and the complete absence of /usr/local from the Python search path on Fedora. What a can of worms. So instead we just ask distutils to record the list of files it installed, and deinstallation consists of removing those files. Not ideal, but hard to do better without a lot of work, given the constraints, and probably not worth trying, since in the long run normal users ought to be using platform-specific packaging systems (apt, yum, portupgrade, macports, ...) to install and deinstall anyway. svn path=/rpkid/Makefile.in; revision=3636
-rw-r--r--rpkid/Makefile.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/rpkid/Makefile.in b/rpkid/Makefile.in
index 99a8be23..144dfc83 100644
--- a/rpkid/Makefile.in
+++ b/rpkid/Makefile.in
@@ -58,13 +58,13 @@ clean::
rm -f ${SCRIPTS}
install:
- ${SETUP_PY} install
+ ${SETUP_PY} install --record installed
uninstall deinstall:
- dir=`${PYTHON} -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()'`; \
- egg=`${PYTHON} setup.py --fullname`; \
- rm -rfv $$dir/rpki $$dir/$$egg-*.egg-info; \
- for i in ${SCRIPTS}; do rm -fv ${sbindir}/$$i; done
+ xargs rm -fv <installed
+
+distclean::
+ rm -f _installed
dont-run-trang:
touch *.rng
@@ -145,7 +145,7 @@ pdf: html
docs: dot eps png html text tgz pdf
-distclean: clean docclean
+distclean:: clean docclean
cd tests; ${MAKE} $@
rm -f TAGS rpki/__doc__.py Makefile