BotZ/Makefile

60 lines
1.5 KiB
Makefile
Raw Normal View History

2019-08-07 17:53:52 +02:00
.PHONY: clean clean-test clean-pyc clean-build
2019-01-07 11:16:16 +01:00
2019-08-07 17:53:52 +02:00
VERSION = $(shell grep VERSION setup.py|cut -d\" -f2)
2019-01-07 11:16:16 +01:00
2019-08-07 17:53:52 +02:00
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
2019-01-07 11:16:16 +01:00
clean-build: ## remove build artifacts
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
2019-08-07 17:53:52 +02:00
rm -fr bot_z.web/build/
2019-01-07 11:16:16 +01:00
clean-pyc: ## remove Python file artifacts
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test: ## remove test and coverage artifacts
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
2019-08-07 17:53:52 +02:00
release: clean build
2019-01-07 11:16:16 +01:00
2019-08-07 17:53:52 +02:00
sdist:
python setup.py sdist
2019-01-07 11:16:16 +01:00
2019-08-07 17:53:52 +02:00
build: sdist build-linux64 build-linux32 build-win32 build-win64 build-macos
2019-01-07 11:16:16 +01:00
2019-08-07 17:53:52 +02:00
build-linux64:
python setup.py bdist_wheel --plat-name manylinux1-x86_64
2019-01-07 11:16:16 +01:00
2019-08-07 17:53:52 +02:00
sdist/bot_z-$(VERSION)-py3-none-manylinux1_x86_64.whl: build-linux64
2019-01-07 11:16:16 +01:00
2019-08-07 17:53:52 +02:00
build-linux32:
python setup.py bdist_wheel --plat-name manylinux1-i686
2019-01-07 11:16:16 +01:00
2019-08-07 17:53:52 +02:00
sdist/bot_z-$(VERSION)-py3-none-manylinux1_i686.whl: build-linux32
2019-01-07 11:16:16 +01:00
2019-08-07 17:53:52 +02:00
build-win32:
python setup.py bdist_wheel --plat-name win32
sdist/bot_z-$(VERSION)-py3-none-win32.whl: build-win32
build-win64:
python setup.py bdist_wheel --plat-name win-amd64
sdist/bot_z-$(VERSION)-py3-none-manylinux1_win-amd64.whl: build-win64
build-macos:
python setup.py bdist_wheel --plat-name macosx
sdist/bot_z-$(VERSION)-py3-none-macosx.whl: build-macos
2019-01-07 11:16:16 +01:00
install: clean ## install the package to the active Python's site-packages
python setup.py install