-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (36 loc) · 909 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
42
43
44
45
46
47
48
49
50
51
PHONY=help clean dist doc ref-man install uninstall upload upload-test venv
NON_PHONY=venv-run venv-build
ALL=$(PHONY) $(NON_PHONY)
.PHONY: $(PHONY)
INSTALL_TOOL=python3 tools/install.py
help:
@echo $(ALL)
@echo
@echo 'Run make from the project root directory.'
clean:
rm -rf dist
rm -rf build
rm -rf src/exactly.egg-info
dist:
python3 -m build --no-isolation
doc:
make -f sphinx.mak html
build:
mkdir build
ref-man: build
python3 src/default-main-program-runner.py help htmldoc > build/exactly.html
install:
$(INSTALL_TOOL) install
uninstall:
$(INSTALL_TOOL) uninstall
upload:
python3 -m twine upload dist/*
upload-test:
python3 -m twine upload --repository PyPiTest dist/*
venv-run:
python3 -m venv venv-run
venv-build:
python3 -m venv venv-build
. venv-build/bin/activate; \
pip --require-virtualenv install --upgrade -r build-requirements.txt
venv: venv-run venv-build