-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (24 loc) · 993 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
default: readme docs
MASK ?= 2>&1 | sed 's@$(shell cd ../../; pwd)@HERE@g; s@".*/site-packages@"SITE-PACKAGES@g'
readme:
COLUMNS=120 kamidana misc/readme.rst.jinja2 --additionals reader ${MASK} > README.rst
docs:
$(MAKE) html -C docs
.PHONY: docs
# integration tests (regression tests)
WHERE ?= .
run:
$(MAKE) --silent _find-candidates | xargs -n 1 make -C || (echo "**********NG**********" && exit 1)
ci:
$(MAKE) --silent _find-candidates | xargs -n 1 echo "TEE='2>&1 >' OPTS=--logging=WARNING" make --silent -C | bash -x -e || (echo "**********NG**********" && exit 1)
test -z `git diff` || (echo "*********DIFF*********" && git diff && exit 2)
_find-candidates:
@find ${WHERE} -mindepth 2 -name Makefile | grep -v optional/sheet | grep -v docs | xargs -n 1 -I{} dirname {}
build:
# pip install wheel
python setup.py bdist_wheel
upload:
# pip install twine
twine check dist/kamidana-$(shell cat VERSION)*
twine upload dist/kamidana-$(shell cat VERSION)*
.PHONY: build upload