forked from clayrisser/sphinx-markdown-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (45 loc) · 1012 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
52
53
54
55
56
57
58
CWD := $(shell pwd)
ARGS := ""
.PHONY: all
all: clean
.PHONY: start
start: env
@cd examples/javascript && make markdown
.PHONY: install
install: env
@cd examples/javascript && make install
.PHONY: uninstall
uninstall:
-@rm -rf env >/dev/null || true
@cd examples/javascript && make uninstall
.PHONY: reinstall
reinstall: uninstall install
@cd examples/javascript && make reinstall
.PHONY: format
format:
@env/bin/yapf -ir -vv \
$(CWD)/*.py \
$(CWD)/sphinx_markdown_parser
@env/bin/unify -ir \
$(CWD)/*.py \
$(CWD)/sphinx_markdown_parser
env:
@virtualenv env
@env/bin/pip3 install -r ./requirements.txt
.PHONY: build
build: dist
dist: clean install
@env/bin/python3 setup.py sdist
@env/bin/python3 setup.py bdist_wheel
.PHONY: publish
publish: dist
@twine upload dist/*
.PHONY: link
link: install
@pip3 install -e .
.PHONY: unlink
unlink: install
-@rm -r $(shell find . -name '*.egg-info') 2>/dev/null | true
.PHONY: clean
clean:
@git clean -fXd -e \!env -e \!env/**/*