PYTHON ?= /usr/bin/python3 DESTDIR := / PODMAN_VERSION ?= '0.0.4' .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: upload upload: $(PODMAN_VERSION) $(PYTHON) setup.py sdist bdist_wheel twine upload --repository-url https://test.pypi.org/legacy/ dist/* .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 {} \;