1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
#!/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
include /usr/share/dpkg/default.mk
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 --destdir '$t' -- -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 $@
|