mirror of https://github.com/containers/podman.git
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 <dwalsh@redhat.com> Closes: #1214 Approved by: baude
This commit is contained in:
parent
0f1086cf7c
commit
7d43e7c451
5
Makefile
5
Makefile
|
@ -1,4 +1,5 @@
|
|||
GO ?= go
|
||||
DESTDIR ?= /
|
||||
EPOCH_TEST_COMMIT ?= 7462ebe830b256e9e145d133c824de5dfd23045d
|
||||
HEAD ?= HEAD
|
||||
CHANGELOG_BASE ?= HEAD~
|
||||
|
@ -240,8 +241,8 @@ install.systemd:
|
|||
install ${SELINUXOPT} -m 644 -D contrib/varlink/podman.conf ${TMPFILESDIR}/podman.conf
|
||||
|
||||
install.python:
|
||||
$(MAKE) -C contrib/python/podman install
|
||||
$(MAKE) -C contrib/python/pypodman install
|
||||
$(MAKE) DESTDIR=${DESTDIR} -C contrib/python/podman install
|
||||
$(MAKE) DESTDIR=${DESTDIR} -C contrib/python/pypodman install
|
||||
|
||||
uninstall:
|
||||
for i in $(filter %.1,$(MANPAGES)); do \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue