summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2015-11-02 08:21:45 +0100
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2015-11-02 08:21:45 +0100
commit1348f58d9c926f11abefdbb89173d69d07f33afd (patch)
treeceec688e66945fe7605a79ff1dfaa638136f0c54 /debian/rules
parentf99a0fefb4a79faea8e59de9be85f8998fb99ac5 (diff)
move docu to new package liburiparser-doc
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules19
1 files changed, 14 insertions, 5 deletions
diff --git a/debian/rules b/debian/rules
index 5cba506..41c2be5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Configure arguments
-confflags = --prefix=/usr --disable-test --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
+confflags = --prefix=/usr --disable-test --disable-doc --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
@@ -25,10 +25,19 @@ endif
override_dh_auto_configure:
./configure $(confflags)
-override_dh_install:
- dh_install
- mv debian/liburiparser-dev/usr/share/doc/uriparser debian/liburiparser-dev/usr/share/doc/liburiparser-dev
- $(RM) debian/liburiparser-dev/usr/share/doc/liburiparser-dev/html/*.md5
+override_dh_auto_build-indep:
+ dh_auto_build
+ make -C doc
+
+override_dh_installdocs-indep:
+ cp -r $(CURDIR)/doc/html/* $(CURDIR)/debian/liburiparser-doc/usr/share/doc/liburiparser-doc/html/
+ $(RM) debian/liburiparser-doc/usr/share/doc/liburiparser-doc/html/*.md5
+ dh_installdocs
+
+#override_dh_install:
+# dh_install
+# mv debian/liburiparser-doc/usr/share/doc/uriparser debian/liburiparser-doc/usr/share/doc/liburiparser-doc
+# $(RM) debian/liburiparser-doc/usr/share/doc/liburiparser-doc/html/*.md5
UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -n '/\(Version:\)/{s/^Version:[[:space:]]\+\([0-9]\+:\)\?\(.*\)/\2/p}' | rev | cut -d- -f 2- | rev)