Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fb170d3846
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 70 lines (56 sloc) 2.05 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
# Makefile for scikit-learn-speed benchmarks and documentation
#
# You can set these variables from the command line.
PYTHON ?= python
VBENCH_PYTHON ?= $PYTHON
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
PAPER ?=
BUILDDIR ?= benchmarks/build

# Internal variables.
SKL_SPEED_ARGS ?= quick
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -P -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS)
WEB_REPO_ALIAS = origin

.PHONY: help clean clean_db clean_all html rst run

all: run rst html

help:
@echo "Please use make <target> where <target> is one of"
@echo " clean to clean the results of a previous documentation build"
@echo " clean_db to remove the database resulted from a benchmark run"
@echo " clean_all to do both of the above"
@echo " html to make standalone HTML files"
@echo " rst to generate the Sphinx RST sources"
@echo " run to run the benchmarks"

clean_all: clean clean_db

clean_db:
rm -f benchmarks/benchmarks.db

clean:
rm -rf $(BUILDDIR)/*
rm -rf doc/index.rst
rm -rf doc/vb*.rst
rm -rf doc/vbench/

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) doc $(BUILDDIR)/html
touch $(BUILDDIR)/html/.nojekyll
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

rst:
$(PYTHON) benchmarks/generate_rst_files.py $(SKL_SPEED_ARGS)

run:
$(PYTHON) benchmarks/run_suite.py $(SKL_SPEED_ARGS)

github:
@echo "Send to github"
ghp-import -p $(BUILDDIR)/html -r ${WEB_REPO_ALIAS}

# latex:
# $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
# @echo
# @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
# @echo "Run \`make' in that directory to run these through (pdf)latex" \
# "(use \`make latexpdf' here to do that automatically)."

#latexpdf:
# $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
# @echo "Running LaTeX files through pdflatex..."
# make -C $(BUILDDIR)/latex all-pdf
# @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
Something went wrong with that request. Please try again.