[Pkg-octave-commit] [octave-interval] 06/07: d/rules: Fixed build of the package manual

Oliver Heimlich oheim-guest at moszumanska.debian.org
Sun Sep 27 11:19:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

oheim-guest pushed a commit to branch master
in repository octave-interval.

commit bfdd5d05475698e2b31a42991eba885f14c2b421
Author: Oliver Heimlich <oheim at posteo.de>
Date:   Sun Sep 27 13:02:33 2015 +0200

    d/rules: Fixed build of the package manual
---
 .gitignore   | 10 ++++++++++
 debian/rules | 10 +++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index 364a655..9b73b2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,16 @@
 /global-list
 /local-list
+/doc/image/*.m.png
+/doc/manual.aux
+/doc/manual.cp
+/doc/manual.fn
+/doc/manual.ky
+/doc/manual.log
 /doc/manual.pdf
+/doc/manual.pg
+/doc/manual.toc
+/doc/manual.tp
+/doc/manual.vr
 /debian/files
 /debian/octave-interval
 /debian/octave-interval-common
diff --git a/debian/rules b/debian/rules
index a4b922e..5693f13 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,8 +9,12 @@ indepshr = $(CURDIR)/debian/octave-$(pkg)-common/usr/share
 
 DEB_DH_INSTALL_SOURCEDIR = debian/octave-$(pkg)
 
-build/octave-$(pkg)::
-	make -C doc manual.pdf
+install-docs: build-docs
+build-docs::
+	# The documentation build needs to load the package,
+	# so we have to set paths for the build process.
+	OCTAVE="$(octave) $(octave_options) --eval \"pkg ('prefix', [pwd(),'/../$(debpkg)/$(mpath)'], [pwd(),'/../$(debpkg)/$(bpath)']); pkg ('local_list', [pwd(),'/../local-list']); pkg ('global_list', [pwd(),'/../global-list']);\"" \
+		make -C doc manual.pdf
 
 install/octave-$(pkg)-common:: install/octave-$(pkg)
 
@@ -22,4 +26,4 @@ install/octave-$(pkg)::
 
 clean::
 	( cd doc ; \
-	  rm -f *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr manual.pdf )
+	  rm -f *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr manual.pdf image/*.m.png )

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-interval.git



More information about the Pkg-octave-commit mailing list