-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
43 lines (32 loc) · 1.18 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
# convenience makefile to boostrap & run buildout
# use `make options=-v` to run buildout with extra options
python = python2.7
options =
all: docs tests
docs: docs/html/index.html
docs/html/index.html: README.rst docs/*.rst src/tutorial/todoapp/*.py \
src/tutorial/todoapp/tests/*.py bin/sphinx-build
bin/sphinx-build docs docs/html
@touch $@
@echo "Documentation was generated at '$@'."
bin/sphinx-build: .installed.cfg
@touch $@
.installed.cfg: bin/buildout buildout.cfg buildout.d/*.cfg setup.py
bin/buildout $(options)
bin/buildout: bin/python buildout.cfg bootstrap.py
bin/python bootstrap.py -d
@touch $@
bin/python:
virtualenv -p $(python) --no-site-packages .
@touch $@
tests: .installed.cfg
@bin/test
@bin/flake8 setup.py
@bin/flake8 src/tutorial/todoapp
@for pt in `find src/tutorial/todoapp -name "*.pt"` ; do bin/zptlint $$pt; done
@for xml in `find src/tutorial/todoapp -name "*.xml"` ; do bin/zptlint $$xml; done
@for zcml in `find src/tutorial/todoapp -name "*.zcml"` ; do bin/zptlint $$zcml; done
clean:
@rm -rf .installed.cfg .mr.developer.cfg bin docs/html parts develop-eggs \
src/tutorial.todoapp.egg-info lib include .Python
.PHONY: all docs tests clean