Generate PDF and html doc and install it in nut-doc package
This commit is contained in:
parent
63f12aa09f
commit
dfa7599f33
8 changed files with 98 additions and 4 deletions
18
debian/rules
vendored
18
debian/rules
vendored
|
@ -32,6 +32,11 @@ ifeq (linux,$(DEB_HOST_ARCH_OS))
|
|||
DEB_CONFIGURE_EXTRA_FLAGS+=--with-udev-dir=/lib/udev
|
||||
endif
|
||||
|
||||
# only build documentation if asciidoc is installed
|
||||
ifneq ($(shell which asciidoc),)
|
||||
DEB_CONFIGURE_EXTRA_FLAGS+=--with-doc=html-chunked,pdf
|
||||
endif
|
||||
|
||||
common-install-arch::
|
||||
# install the bash completion script
|
||||
mkdir -p $(CURDIR)/debian/tmp/etc/bash_completion.d
|
||||
|
@ -44,10 +49,23 @@ common-install-arch::
|
|||
mv $${f} $(CURDIR)/debian/tmp/etc/nut/$${nf}; \
|
||||
done
|
||||
|
||||
common-install-indep::
|
||||
#install documentation
|
||||
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/pdf
|
||||
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html
|
||||
cp $(CURDIR)/docs/*.pdf $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/pdf
|
||||
cp $(CURDIR)/docs/FAQ.html $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html
|
||||
|
||||
for f in $(CURDIR)/docs/*.chunked/; do \
|
||||
nf=`basename $${f} | sed 's/\(.*\)\.chunked/\1/'`; \
|
||||
cp -a $${f} $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html/$${nf}/; \
|
||||
done
|
||||
|
||||
binary-install/nut-monitor::
|
||||
dh_python2 -pnut-monitor
|
||||
|
||||
DEB_DH_INSTALLINIT_ARGS_nut-server := --init-script=nut -- start 50 2 3 4 5 . stop 50 0 1 6 .
|
||||
DEB_DH_COMPRESS_ARGS_nut-doc := -X.pdf
|
||||
|
||||
ifeq (linux,$(DEB_HOST_ARCH_OS))
|
||||
# for Debian
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue