diff options
author | Fathi Boudra <fabo@debian.org> | 2012-01-05 22:36:14 +0200 |
---|---|---|
committer | Fathi Boudra <fabo@debian.org> | 2012-01-05 22:36:14 +0200 |
commit | 583392dfa83f54bdf1de7c5f28f4b2ebf3e0e3ff (patch) | |
tree | bc4ad06e747ec79c42fae76ae0f6672b00e163ff | |
parent | a73e15110e0946408d827fe657b43e709d8ec433 (diff) | |
download | qt4-x11-583392dfa83f54bdf1de7c5f28f4b2ebf3e0e3ff.tar.gz |
Update debian/rules: build documentation in dh_auto_install so it is only
built when arch-all packages are generated. (Closes: #653427)
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | debian/rules | 14 |
2 files changed, 11 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog index 97047d4..bff01ad 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ qt4-x11 (4:4.7.4-2) UNRELEASED; urgency=low - * . + * Update debian/rules: build documentation in dh_auto_install so it is only + built when arch-all packages are generated. (Closes: #653427) -- Fathi Boudra <fabo@debian.org> Thu, 05 Jan 2012 22:23:02 +0200 diff --git a/debian/rules b/debian/rules index 70c47b7..832b7e7 100755 --- a/debian/rules +++ b/debian/rules @@ -149,13 +149,8 @@ endif override_dh_auto_build: dh_auto_build - # Build documentations - dh_auto_build -Smakefile -- docs # Build translations dh_auto_build -Smakefile -- ts - # Workaround: It's a known qmake limitation. - # It can't generate install rules for files that don't exist yet like docs. - ./config.status override_dh_auto_clean: [ ! -f Makefile ] || $(MAKE) confclean distclean @@ -232,6 +227,15 @@ override_dh_auto_clean: rm -f debian/stamp-makefile-build-tools override_dh_auto_install: +ifneq (,$(filter qt4-doc, $(shell dh_listpackages))) + # Build documentations + dh_auto_build -Smakefile -- docs +endif + + # Workaround: It's a known qmake limitation. + # It can't generate install rules for files that don't exist yet like docs. + ./config.status + dh_auto_install -Smakefile -- INSTALL_ROOT=$(CURDIR)/debian/tmp/ # Ship private headers - ugly hack to build Qt Creator QML Designer |