#!/usr/bin/make -f # # Debhelper rules file for mdk-doc AUTOPOINT= intltoolize --automake --copy export AUTOPOINT p= mdk-doc d= ${CURDIR} t= $d/debian/$p doc= /usr/share/doc/mdk mhtml= ${doc}/mdk.html html= ${doc}/html ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) DEB_NODOC=0 else DEB_NODOC=1 endif override_dh_auto_configure: ifeq (${DEB_NODOC},0) dh_auto_configure -- --docdir=${doc} --disable-gui --disable-nls \ --without-guile --without-readline endif override_dh_auto_build: ifeq (${DEB_NODOC},0) dh_auto_build -- -C doc all html endif override_dh_auto_test: # Nothing override_dh_auto_install: ifeq (${DEB_NODOC},0) dh_auto_install -- -C doc install install-html # Easier than messing with the internals of doc/Makefile.in mv -v $t/${mhtml} $t/${html} endif override_dh_install: ifeq (${DEB_NODOC},1) # Nothing endif override_dh_installchangelogs: dh_installchangelogs install -m 644 NEWS debian/mdk-doc/usr/share/doc/mdk-doc/ %: dh $@