Imported Upstream version 2.7.2
This commit is contained in:
parent
0121794af9
commit
a356b56d11
263 changed files with 6039 additions and 8151 deletions
|
|
@ -16,8 +16,7 @@ SHARED_DEPS = nut-names.txt asciidoc.conf
|
|||
|
||||
USER_MANUAL_DEPS = acknowledgements.txt cables.txt config-notes.txt \
|
||||
configure.txt download.txt documentation.txt features.txt history.txt \
|
||||
outlets.txt scheduling.txt security.txt support.txt user-manual.txt \
|
||||
stable-hcl.txt
|
||||
outlets.txt scheduling.txt security.txt support.txt user-manual.txt
|
||||
|
||||
DEVELOPER_GUIDE_DEPS = contact-closure.txt design.txt developers.txt \
|
||||
developer-guide.txt hid-subdrivers.txt macros.txt new-clients.txt \
|
||||
|
|
@ -36,11 +35,12 @@ CABLES_IMAGES = images/cables/73-0724.png images/cables/940-0024C.jpg \
|
|||
images/cables/SOLA-330.png
|
||||
|
||||
ALL_TXT_SRC = nut-names.txt $(USER_MANUAL_DEPS) $(DEVELOPER_GUIDE_DEPS) \
|
||||
$(CABLES_DEPS) FAQ.txt nut-hal.txt nut-qa.txt packager-guide.txt snmp.txt
|
||||
$(CABLES_DEPS) FAQ.txt nut-qa.txt packager-guide.txt snmp.txt
|
||||
|
||||
NUT_SPELL_DICT = nut.dict
|
||||
EXTRA_DIST = $(ALL_TXT_SRC) $(SHARED_DEPS) $(IMAGE_FILES) \
|
||||
$(CABLES_IMAGES) docinfo.xml $(NUT_SPELL_DICT)
|
||||
$(CABLES_IMAGES) docinfo.xml $(NUT_SPELL_DICT) \
|
||||
common.xsl xhtml.xsl chunked.xsl
|
||||
|
||||
ASCIIDOC_HTML_SINGLE = user-manual.html \
|
||||
developer-guide.html \
|
||||
|
|
@ -55,10 +55,10 @@ ASCIIDOC_HTML_CHUNKED = user-manual.chunked \
|
|||
ASCIIDOC_PDF = user-manual.pdf \
|
||||
developer-guide.pdf \
|
||||
packager-guide.pdf \
|
||||
cables.pdf \
|
||||
FAQ.pdf
|
||||
|
||||
# Force build in ./ and man/ before website
|
||||
SUBDIRS = . man website
|
||||
SUBDIRS = man
|
||||
SUFFIXES = .txt .html .pdf
|
||||
|
||||
all: doc
|
||||
|
|
@ -70,27 +70,13 @@ pdf: $(ASCIIDOC_PDF)
|
|||
html-single: $(ASCIIDOC_HTML_SINGLE)
|
||||
html-chunked: $(ASCIIDOC_HTML_CHUNKED)
|
||||
|
||||
if HAVE_ASCIIDOC
|
||||
website: html-chunked pdf
|
||||
else !HAVE_ASCIIDOC
|
||||
website:
|
||||
@echo "Not building website documentation since 'asciidoc' was not found."
|
||||
endif !HAVE_ASCIIDOC
|
||||
|
||||
clean-local:
|
||||
rm -rf *.pdf *.html *.chunked docbook-xsl.css *.bak
|
||||
|
||||
# Static HCL is generated automatically
|
||||
# This is more of a harness, since this file should have already been
|
||||
# generated, due to the top level Makefile SUBDIRS ordering (tools before docs)
|
||||
ups-html.txt: ../data/driver.list.in
|
||||
cd ../data && $(MAKE) $(AM_MAKEFLAGS) driver.list
|
||||
cd ../tools && $(MAKE) $(AM_MAKEFLAGS) website
|
||||
|
||||
### TODO: automatic dependency generation
|
||||
# Add other directory deps (not for local EXTRA_DIST) and generated contents
|
||||
FULL_USER_MANUAL_DEPS = $(USER_MANUAL_DEPS) $(SHARED_DEPS) ../README \
|
||||
../INSTALL ../UPGRADING ../TODO ../scripts/ufw/README
|
||||
../INSTALL.nut ../UPGRADING ../TODO ../scripts/ufw/README
|
||||
FULL_DEVELOPER_GUIDE_DEPS = $(DEVELOPER_GUIDE_DEPS) $(SHARED_DEPS) \
|
||||
../scripts/augeas/README ../TODO ../lib/README \
|
||||
../tools/nut-scanner/README
|
||||
|
|
@ -112,11 +98,11 @@ A2X_COMMON_OPTS = $(ASCIIDOC_VERBOSE) --attribute icons \
|
|||
--attribute tree_version=@TREE_VERSION@ \
|
||||
-a toc -a numbered --destination-dir=.
|
||||
|
||||
.txt.html:
|
||||
$(A2X) $(A2X_COMMON_OPTS) --attribute=xhtml11_format --format=xhtml $<
|
||||
.txt.html: common.xsl xhtml.xsl
|
||||
$(A2X) $(A2X_COMMON_OPTS) --attribute=xhtml11_format --format=xhtml --xsl-file=$(srcdir)/xhtml.xsl $<
|
||||
|
||||
.txt.chunked:
|
||||
$(A2X) $(A2X_COMMON_OPTS) --attribute=chunked_format --format=chunked $<
|
||||
.txt.chunked: common.xsl chunked.xsl
|
||||
$(A2X) $(A2X_COMMON_OPTS) --attribute=chunked_format --format=chunked --xsl-file=$(srcdir)/chunked.xsl $<
|
||||
|
||||
.txt.pdf: docinfo.xml
|
||||
$(A2X) $(A2X_COMMON_OPTS) --attribute=pdf_format --format=pdf -a docinfo1 $<
|
||||
|
|
@ -144,4 +130,4 @@ spellcheck-interactive:
|
|||
@echo "Documentation spell check not available since 'aspell' was not found."
|
||||
endif !HAVE_ASPELL
|
||||
|
||||
.PHONY: html html-single pdf website
|
||||
.PHONY: html html-single pdf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue