mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 09:56:41 +08:00
PKG: Move any handing of docs under if_nodoc, no need for custom mv if there is .docs
This commit is contained in:
Vendored
+1
@@ -0,0 +1 @@
|
||||
doc/build/html
|
||||
Vendored
+6
-14
@@ -29,6 +29,12 @@ ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
|
||||
export PYTHONPATH=$(PACKAGE_ROOT_DIR)/usr/lib/python$*/dist-packages MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
|
||||
cd doc; test -d build/html || $(MAKE) html
|
||||
python$* setup.py install --install-layout=deb --root=$(PACKAGE_ROOT_DIR)
|
||||
: # Use jquery and underscore from Debian package, so prune shipped one
|
||||
-rm -f doc/build/html/_static/jquery.js
|
||||
# Actually due to the problems with underscore pkg across releases just ship one for now
|
||||
#-rm -f doc/build/html/_static/underscore.js
|
||||
-rm -rf doc/build/html/_sources
|
||||
-rm -f doc/build/html/.buildinfo
|
||||
endif
|
||||
|
||||
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
||||
@@ -49,20 +55,6 @@ endif
|
||||
mv $$lib $$tdir ; \
|
||||
done
|
||||
|
||||
: # Use jquery and underscore from Debian package, so prune shipped one
|
||||
-rm -f doc/build/html/_static/jquery.js
|
||||
# Actually due to the problems with underscore pkg across releases just ship one for now
|
||||
#-rm -f doc/build/html/_static/underscore.js
|
||||
-rm -rf doc/build/html/_sources
|
||||
-rm -f doc/build/html/.buildinfo
|
||||
|
||||
: # Move documentation to -doc
|
||||
sdir=$(CURDIR)/doc/build/html ; \
|
||||
tdir=$(PACKAGE_ROOT_DIR)-doc/usr/share/doc/$(PACKAGE_NAME)-doc ; \
|
||||
mkdir -p $$tdir ; \
|
||||
echo "DOCS: Moving '$$sdir' into '$$tdir'." ; \
|
||||
test -d $$tdir/html || mv $$sdir $$tdir
|
||||
|
||||
if [ -x /usr/bin/dh_numpy ]; then dh_numpy; fi
|
||||
|
||||
## immediately useable documentation and exemplar scripts/data
|
||||
|
||||
Reference in New Issue
Block a user