-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (36 loc) · 1.09 KB
/
Makefile
File metadata and controls
47 lines (36 loc) · 1.09 KB
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
PACKAGE=kiwi
TEST_PACKAGES=$(PACKAGE) tests
WEBDIR=/mondo/htdocs/async.com.br/www/projects/kiwi
# FIXME: This probably should be on utils.mk
TESTS_RUNNER=python3 -m nose --nocapture --nologcapture --verbose --detailed-errors
all:
python3 setup.py build_ext -i
clean-docs:
rm -fr doc/api
rm -fr doc/howto
clean:
rm -fr build
rm -f MANIFEST
docs:
make -s -C doc api howto
apidocs:
make -C docs/api pickle html devhelp
upload-apidocs:
scp -r docs/api/_build/html anthem:/var/www/stoq.com.br/doc/api/kiwi
web: clean-docs docs
cp -r doc/api ${WEBDIR}
cp -r doc/howto ${WEBDIR}
cp -r doc/howto.ps ${WEBDIR}
gzip ${WEBDIR}/howto.ps
cd ${WEBDIR} && tar cfz howto.tar.gz howto
cd ${WEBDIR} && tar cfz api.tar.gz api
check: check-source-all
@rm -f .noseids
$(TESTS_RUNNER) --failed $(TEST_PACKAGES)
check-failed:
$(TESTS_RUNNER) --failed $(TEST_PACKAGES)
coverage: check-source-all
$(TESTS_RUNNER) --with-coverage --with-xunit \
--cover-package=$(PACKAGE) --cover-erase $(TEST_PACKAGES)
include utils/utils.mk
.PHONY: all clean-docs clean docs apidocs upload-apidocs web check