Commit 8c1703c9 authored by Carsten Schoenert's avatar Carsten Schoenert

d/rules: rework the installation of ngspice-doc

Due the added patches from the patch queue branch the ngspice
documentation is now configurable and installable like other autotool
controlled software. To use this debian/rules needs some adjustments.

Closes: #915236
parent acd6326b
......@@ -48,6 +48,13 @@ DEB_TCLSPICE_CONFIGURE_OPTS := \
--with-tcl=/usr/lib/tcl8.6 \
$(NULL)
DEB_NGSPICE_DOC_CONFIGURE_OPTS := \
--prefix=/usr \
--docdir=\$${prefix}/share/doc/ngspice-doc \
--htmldir=\$${prefix}/share/doc/ngspice-doc \
--with-lyxuserdir=$(CURDIR)/$(DEB_BUILD_DIR)/lyxuserdir \
$(NULL)
PREPROCESS_FILES := $(wildcard debian/*.in)
$(PREPROCESS_FILES:.in=): %: %.in
......@@ -74,6 +81,15 @@ override_dh_auto_configure-arch:
##############################
dh_auto_configure --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/tclspice -- $(DEB_TCLSPICE_CONFIGURE_OPTS)
override_dh_auto_configure-indep:
#
###################################
# configure ngspice documentation #
###################################
cd doc ; autoreconf -vi
mkdir -p $(DEB_BUILD_DIR)/lyxuserdir/cache
dh_auto_configure --sourcedirectory=$(CURDIR)/doc --builddirectory=$(DEB_BUILD_DIR)/ngspice-doc -- $(DEB_NGSPICE_DOC_CONFIGURE_OPTS)
override_dh_auto_build:
#
#################################
......@@ -115,14 +131,11 @@ override_dh_auto_install: $(PREPROCESS_FILES:.in=)
override_dh_install-indep:
#
###########################
# building ngspice manual #
###########################
mkdir -p $(DEB_BUILD_DIR)/doc
##################################
# building ngspice documentation #
##################################
rm -f $(CURDIR)/doc/manual.pdf
cd $(CURDIR)/doc ;\
lyx -userdir $(CURDIR)/$(DEB_BUILD_DIR)/doc --export pdf2 manual.lyx ;\
lyx -userdir $(CURDIR)/$(DEB_BUILD_DIR)/doc --export xhtml manual.lyx
dh_auto_install --destdir=$(INSTDIR) --sourcedirectory=$(CURDIR)/doc --builddirectory=$(DEB_BUILD_DIR)/ngspice-doc
dh_install
override_dh_install-arch:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment