Updated Makefile .PHONY targets

This commit is contained in:
Mark Vartanyan 2019-01-04 01:53:15 +03:00
parent fd0577b193
commit 4e25136156
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ SHELL := /bin/bash
.PHONY: clean build publish test test-tox test-docker
# Package
.PHONY: clean
clean:
@rm -rf build/ dist/ *.egg-info/ README.md README.rst
@pip install -e . # have to reinstall because we are using self
@ -12,6 +13,8 @@ README.md: $(shell find misc/ j2cli/)
README.rst: README.md
@pandoc -f markdown -t rst -o README.rst README.md
.PHONY: build publish-test publish
build: README.rst
@./setup.py build sdist bdist_wheel
publish-test: README.rst
@ -20,6 +23,7 @@ publish: README.rst
@twine upload dist/*
.PHONY: test test-tox test-docker test-docker-2.6
test:
@nosetests
test-tox: