Debian Codegraph @

Makefile

raw
1 .DEFAULT_GOAL := help
2
3 ## clean: Clean directory for build
4 clean:
5 rm -rf dist/*
6
7 .PHONY: build
8 ## build: Build package
9 build:
10 pipenv run python setup.py sdist bdist_wheel
11
12 ## deploy: Deploy haversine to pypi
13 deploy: clean build
14 pipenv install twine
15 pipenv run twine upload dist/* --verbose
16 pipenv uninstall twine
17 git checkout -- Pipfile.lock
18
19
20 .PHONY: help
21 ## help: Prints this help text.
22 help:
23 @echo ''
24 @echo ' Usage:'
25 @echo ' make <target>'
26 @echo ''
27 @echo ' Targets:'
28 @sed -n 's/^## \?/ /p' $(MAKEFILE_LIST)