-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
56 lines (54 loc) · 1.61 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
44
45
46
47
48
49
50
51
52
53
54
55
56
# This Makefile is for the convenience of the package developers,
# and is not meant for use by end-users or packagers.
reinstall: pyclean pipclean
pip install . --user --verbose --no-cache
reinstall_ve: pyclean pipclean
pip install . --verbose --no-cache
rdoc:
Rscript rdocs.R
rbuild:
R CMD build opentimsr
rprep: rclean rdoc rclean rbuild
rcheck: rprep
R CMD check opentimsr_*.tar.gz
rcheck_as_CRAN: rprep
R CMD check --as-cran opentimsr_*.tar.gz
rinstallfuckingdependenciescauseRcmdwontdoit:
R -e 'install.packages(c("Rcpp","DBI","RSQLite"))'
rfullinst: rprep
R CMD INSTALL opentimsr_*.tar.gz
rinst: rclean rbuild
R CMD INSTALL opentimsr_*.tar.gz
ipy:
python -m IPython
clean: pyclean rclean hereclean
rclean:
rm -rf opentimsr_*.tar.gz opentimsr.Rcheck opentimsr/src/*.o opentimsr/src/*.so opentimsr/src/*.tmp
pyclean:
rm -rf build dist opentimspy.egg-info *.whl
hereclean:
rm -f *.so a.out
pipclean:
pip uninstall opentimspy -y || true
pip uninstall opentimspy -y || true
docs: clean_docs
git branch gh-pages || true
git checkout gh-pages || true
pip install sphinx || true
pip install recommonmark || true
mkdir -p sphinx
sphinx-quickstart sphinx --sep --project OpenTIMS --author Lacki_and_Startek -v 0.0.1 --ext-autodoc --ext-githubpages --extensions sphinx.ext.napoleon --extensions recommonmark --makefile -q --no-batchfile
sphinx-apidoc -f -o sphinx/source opentimspy
cd sphinx && make html
cp -r sphinx/build/html docs
touch docs/.nojekyll
update_docs:
rm -rf docs
mkdir -p docs
cd sphinx && make html
cp -r sphinx/build/html/* docs
show_docs:
firefox docs/index.html
clean_docs:
rm -rf sphinx
rm -rf docs