summaryrefslogtreecommitdiff
path: root/contrib/python/pypodman/Makefile
blob: fb25776faf5a6a1d6b4f2978e17113eb53a97a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 {} \;