-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 938 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FILE_EXISTS:=$(wildcard install.record)
ifeq ($(strip $(FILE_EXISTS)),)
UNINSTALL_FILES:=
else
UNINSTALL_FILES:=$(shell cat install.record)
endif
all:
@echo " build : build the python package."
@echo " install : install the python package into /usr/local."
@echo " uninstall: uninstall the python package from /usr/local."
@echo " distro : build the distribution tarball."
@echo " register : register the package with PyPI."
@echo " upload : upload the package to PyPI."
@echo " clean : clean build/dist directories."
build:
python setup.py build
install:
sudo python setup.py install --record install.record
# Use -f to ignore any warnings about it being an empty argument
uninstall:
sudo rm -f ${UNINSTALL_FILES}
distro:
python setup.py sdist
register:
python setup.py register
upload:
python setup.py sdist upload
clean:
rm -rf build dist MANIFEST install.record
.PHONY: clean build