Debian Codegraph @

Makefile

raw
1 FILE_LIST = ./.installed_files.txt
2
3 .PHONY: build clean install publish pull push uninstall
4
5 build:
6 @ ./setup.py sdist bdist_wheel
7
8 clean:
9 @ rm -Rf ./build ./dist
10
11 default: | pull clean install
12
13 install:
14 @ ./setup.py install --record $(FILE_LIST)
15
16 publish:
17 @ twine upload dist/*
18
19 pull:
20 @ git pull
21
22 push:
23 @ git push
24
25 pypi: | clean build publish
26
27 uninstall:
28 @ while read FILE; do echo "Removing: $$FILE"; rm "$$FILE"; done < $(FILE_LIST)