Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 #
3 # Debhelper rules file for mdk-doc
4
5 AUTOPOINT= intltoolize --automake --copy
6 export AUTOPOINT
7
8 p= mdk-doc
9 d= ${CURDIR}
10 t= $d/debian/$p
11 doc= /usr/share/doc/mdk
12 mhtml= ${doc}/mdk.html
13 html= ${doc}/html
14
15 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
16 DEB_NODOC=0
17 else
18 DEB_NODOC=1
19 endif
20
21 include /usr/share/dpkg/default.mk
22
23 override_dh_auto_configure:
24 ifeq (${DEB_NODOC},0)
25 dh_auto_configure -- --docdir=${doc} --disable-gui --disable-nls \
26 --without-guile --without-readline
27 endif
28
29 override_dh_auto_build:
30 ifeq (${DEB_NODOC},0)
31 dh_auto_build -- -C doc all html
32 endif
33
34 override_dh_auto_test:
35 # Nothing
36
37 override_dh_auto_install:
38 ifeq (${DEB_NODOC},0)
39 dh_auto_install --destdir '$t' -- -C doc install install-html
40
41 # Easier than messing with the internals of doc/Makefile.in
42 mv -v $t/${mhtml} $t/${html}
43 endif
44
45 override_dh_install:
46 ifeq (${DEB_NODOC},1)
47 # Nothing
48 endif
49
50 override_dh_installchangelogs:
51 dh_installchangelogs
52 install -m 644 NEWS debian/mdk-doc/usr/share/doc/mdk-doc/
53
54 %:
55 dh $@