-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile
43 lines (33 loc) · 1.01 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
# Makefile for Expyriment
# (c) Florian Krause <florian@expyriment.org> &
# Oliver Lindemann <oliver@expyriment.org>
.PHONY: install clean build testpypi publish
html_documentation: documentation/html
pdf_documentation: documentation/Expyriment.pdf
build:
flit build
install:
flit install
testpypi:
flit --repository testpypi publish
publish:
flit publish
documentation/html:
make --directory=documentation/sphinx rst html
mv documentation/sphinx/_build/html documentation/html
# FIXME SITEMAP DOES NOT WORK
#make --directory=documentation/sphinx sitemap
#mv documentation/sphinx/sitemap.yml documentation/html/
documentation/Expyriment.pdf:
make --directory=documentation/sphinx rst latexpdf
mv documentation/sphinx/_build/latex/Expyriment.pdf documentation/
clean:
@make --directory=documentation/sphinx clean
@rm -rf build \
dist \
expyriment.egg-info \
documentation/Expyriment.pdf\
documentation/api_ref_html\
documentation/html
@find . -name '*.py[co]' \
-o -iname '#*#' | xargs -L 10 rm -f