-
Notifications
You must be signed in to change notification settings - Fork 862
/
makefile
58 lines (51 loc) · 1.11 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Python-Markdown makefile
.PHONY : help
help:
@echo 'Usage: make <subcommand>'
@echo ''
@echo 'Subcommands:'
@echo ' install Install Python-Markdown locally'
@echo ' deploy Register and upload a new release to PyPI'
@echo ' build Build a source distribution'
@echo ' docs Build documentation'
@echo ' test Run all tests'
@echo ' clean Clean up the source directories'
.PHONY : install
install:
pip install .
.PHONY : deploy
deploy:
rm -rf build
rm -rf dist
python -m build
twine upload dist/*
.PHONY : build
build:
rm -rf build
rm -rf dist
python -m build
.PHONY : docs
docs:
mkdocs build --clean
.PHONY : test
test:
coverage run --source=markdown -m unittest discover tests
coverage report --show-missing
.PHONY : clean
clean:
rm -f MANIFEST
rm -f test-output.html
rm -f *.pyc
rm -f markdown/*.pyc
rm -f markdown/extensions/*.pyc
rm -f *.bak
rm -f markdown/*.bak
rm -f markdown/extensions/*.bak
rm -f *.swp
rm -f markdown/*.swp
rm -f markdown/extensions/*.swp
rm -rf build
rm -rf dist
rm -rf tmp
rm -rf site
# git clean -dfx'