[Pkg-octave-commit] [dynare] 02/07: d/rules: support "nodoc" option of DEB_BUILD_OPTIONS.

Sébastien Villemot sebastien at debian.org
Thu Jun 29 11:11:17 UTC 2017


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

sebastien pushed a commit to branch master
in repository dynare.

commit ad97b3e77563fce4061fdd4bf67d9b9431867f4b
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Thu Jun 29 11:37:39 2017 +0200

    d/rules: support "nodoc" option of DEB_BUILD_OPTIONS.
---
 debian/rules | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 14496f3..9b20364 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,9 +9,16 @@ include /usr/share/octave/debian/defs.make
 override_dh_auto_configure:
 	dh_auto_configure -- --libdir=/usr/lib
 
-# Also build PDF and HTML docs
+# Also build PDF and HTML docs (unless nodoc is given)
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
 override_dh_auto_build:
-	dh_auto_build --parallel -- all pdf html
+	dh_auto_build -- all pdf html
+else
+override_dh_auto_build:
+	dh_auto_build
+	mkdir -p doc/dynare.html/
+	touch doc/dynare.pdf doc/guide.pdf doc/macroprocessor/macroprocessor.pdf doc/bvar-a-la-sims.pdf doc/preprocessor/preprocessor.pdf doc/userguide/UserGuide.pdf doc/dr.pdf doc/gsa/gsa.pdf doc/parallel/parallel.pdf dynare++/doc/dynare++-tutorial.pdf dynare++/doc/dynare++-ramsey.pdf dynare++/sylv/sylvester.pdf dynare++/tl/cc/tl.pdf dynare++/integ/cc/integ.pdf dynare++/kord/kord.pdf
+endif
 
 # Don't run the testsuite
 override_dh_auto_test:

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



More information about the Pkg-octave-commit mailing list