]> granicus.if.org Git - yasm/commitdiff
Make python module DESTDIR-clean to unbreak distcheck when python module is
authorPeter Johnson <peter@tortall.net>
Fri, 26 Jan 2007 07:39:01 +0000 (07:39 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 26 Jan 2007 07:39:01 +0000 (07:39 -0000)
enabled.

svn path=/trunk/yasm/; revision=1741

tools/python-yasm/Makefile.inc

index b367f22606ee283e714768222d997b3460d5f543..ed8d7df358c79d3b4c9d03f1485402cb5e6bb33b 100644 (file)
@@ -38,10 +38,10 @@ python-build: .python-build
 CLEANFILES += .python-build
 
 python-install: .python-build
-       $(PYTHON) `test -f tools/python-yasm/setup.py || echo '$(srcdir)/'`tools/python-yasm/setup.py install "--install-lib=$(pythondir)"
+       $(PYTHON) `test -f tools/python-yasm/setup.py || echo '$(srcdir)/'`tools/python-yasm/setup.py install "--install-lib=$(DESTDIR)$(pythondir)"
 
 python-uninstall:
-       rm -f `$(PYTHON) -c "import sys;sys.path.insert(0, '${pythondir}'); import yasm; print yasm.__file__"`
+       rm -f `$(PYTHON) -c "import sys;sys.path.insert(0, '${DESTDIR}${pythondir}'); import yasm; print yasm.__file__"`
 
 else