From 7d43e7c451d79c0e110bdb60a398ad083720c48b Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 6 Aug 2018 08:45:12 -0400 Subject: Pass DESTDIR down to python Makefile In order to get a cleaner build out of the rpms we should pass down the DESTDIR to the python Makefiles. Then we can use them instead of hard coding other inteligence into the spec files. Signed-off-by: Daniel J Walsh Closes: #1214 Approved by: baude --- contrib/python/podman/Makefile | 3 ++- contrib/python/pypodman/Makefile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/python/podman/Makefile b/contrib/python/podman/Makefile index 0a0804566..7096f6152 100644 --- a/contrib/python/podman/Makefile +++ b/contrib/python/podman/Makefile @@ -1,4 +1,5 @@ PYTHON ?= /usr/bin/python3 +DESTDIR ?= / .PHONY: python-podman python-podman: @@ -14,7 +15,7 @@ integration: .PHONY: install install: - $(PYTHON) setup.py install + $(PYTHON) setup.py install --root ${DESTDIR} .PHONY: clobber clobber: uninstall clean diff --git a/contrib/python/pypodman/Makefile b/contrib/python/pypodman/Makefile index 6bc5b968b..fb25776fa 100644 --- a/contrib/python/pypodman/Makefile +++ b/contrib/python/pypodman/Makefile @@ -1,4 +1,5 @@ PYTHON ?= /usr/bin/python3 +DESTDIR := / .PHONY: python-pypodman python-pypodman: @@ -14,7 +15,7 @@ integration: .PHONY: install install: - $(PYTHON) setup.py install + $(PYTHON) setup.py install --root ${DESTDIR} .PHONY: clobber clobber: uninstall clean -- cgit v1.2.3-54-g00ecf