Skip to content
Snippets Groups Projects
Commit 8d293345 authored by Yaroslav Halchenko's avatar Yaroslav Halchenko
Browse files

build docs after modules

parent 91f6d47c
Branches
No related tags found
No related merge requests found
...@@ -5,23 +5,23 @@ PACKAGE_NAME = python-scikits-learn ...@@ -5,23 +5,23 @@ PACKAGE_NAME = python-scikits-learn
PACKAGE_ROOT_DIR = debian/${PACKAGE_NAME} PACKAGE_ROOT_DIR = debian/${PACKAGE_NAME}
PYVERS = $(shell pyversions -vs) PYVERS = $(shell pyversions -vs)
PYVER = $(shell pyversions -vd)
# Mega rule # Mega rule
%: %:
dh $@ dh $@
# Build docs during build # Build docs during build
override_dh_auto_build: doc-stamp override_dh_auto_build:
dh_auto_build dh_auto_build
: # Build Documentation
doc-stamp:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
$(MAKE) -C doc html PYTHONPATH=`/bin/ls -d $$PWD/build/lib.*$(PYVER)` $(MAKE) -C doc html
endif endif
touch $@
override_dh_clean: override_dh_clean:
rm -rf build doc/_build *-stamp scikits.learn.egg-info scikits/learn/datasets/__config__.py rm -rf build doc/_build doc/auto_examples *-stamp scikits.learn.egg-info scikits/learn/datasets/__config__.py
dh_clean dh_clean
# Prune toplevel scikits/__init__.py to avoid conflicts across future # Prune toplevel scikits/__init__.py to avoid conflicts across future
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment