forked from buildbot/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 727 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 727 Bytes
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
# developer utilities
.PHONY: docs apidocs pylint artifacts
docs:
$(MAKE) -C master/docs
apidocs:
$(MAKE) -C apidocs
pylint:
$(MAKE) -C master pylint; master_res=$$?; \
$(MAKE) -C slave pylint; slave_res=$$?; \
if [ $$master_res != 0 ] || [ $$slave_res != 0 ]; then exit 1; fi
pyflakes:
pyflakes master/buildbot slave/buildslave
pep8:
pep8 --config=common/pep8rc master slave
# TODO(sa2ajj): make it a non-phony target
artifacts: DEST_DIR := $(CURDIR)/dist
artifacts:
@rm -rf $(DEST_DIR)
@mkdir -p $(DEST_DIR)
@for name in master slave; do (rm -f $$name/MANIFEST; cd $$name; python setup.py sdist --formats gztar,zip -d $(DEST_DIR)); done
rmpyc:
find . \( -name '*.pyc' -o -name '*.pyo' \) -exec rm -v {} \;