Files
podman/contrib/python/pypodman/Makefile
Daniel J Walsh 7d43e7c451 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
2018-08-07 14:52:30 +00:00

32 lines
567 B
Makefile

PYTHON ?= /usr/bin/python3
DESTDIR := /
.PHONY: python-pypodman
python-pypodman:
$(PYTHON) setup.py sdist bdist
.PHONY: lint
lint:
$(PYTHON) -m pylint pypodman
.PHONY: integration
integration:
true
.PHONY: install
install:
$(PYTHON) setup.py install --root ${DESTDIR}
.PHONY: clobber
clobber: uninstall clean
.PHONY: uninstall
$(PYTHON) -m pip uninstall --yes pypodman ||:
.PHONY: clean
clean:
$(PYTHON) setup.py clean --all
rm -rf pypodman.egg-info dist
find . -depth -name __pycache__ -exec rm -rf {} \;
find . -depth -name \*.pyc -exec rm -f {} \;