-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
39 lines (34 loc) · 1.21 KB
/
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
.PHONY: install
install: chinesevocablist/*
# install deps
pip install -e . --user
# make chinesevocablist/vocab_list_data.py file
make chinesevocablist/vocab_list_data.py
# do install
python3 setup.py install --user
.PHONY: install_venv
install_venv: chinesevocablist/*
# install deps
pip install -e .
# make chinesevocablist/vocab_list_data.py file
make chinesevocablist/vocab_list_data.py
# do install
python3 setup.py install
.PHONY: publish_test
publish_test: chinesevocablist/vocab_list_data.py
rm -rf dist
python3 setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
.PHONY: publish_real
publish_real: chinesevocablist/vocab_list_data.py
rm -rf dist
python3 setup.py sdist bdist_wheel
twine upload dist/*
chinesevocablist/vocab_list_data.py: chinesevocablist/__init__.py \
chinesevocablist/models.py src/generate_vocab_list_data.py chinese_vocab_list.yaml
PYTHONPATH="." python3 src/generate_vocab_list_data.py > "$@"
chinese_vocab_list.yaml: src/* reference_files/* contrib_files/* chinesevocablist/__init__.py \
chinesevocablist/models.py
$(eval tempfile := $(shell mktemp))
PYTHONPATH="." python3 src/build_initial_list.py > "${tempfile}"
cp "${tempfile}" "$@"