PKG: Move any handing of docs under if_nodoc, no need for custom mv if there is .docs

This commit is contained in:
Yaroslav Halchenko
2012-05-03 21:08:27 -04:00
parent 6fb8197868
commit 0649956790
2 changed files with 7 additions and 14 deletions
+1
View File
@@ -0,0 +1 @@
doc/build/html
+6 -14
View File
@@ -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