Imported Upstream version 2.7.1
This commit is contained in:
parent
a1fa151fc7
commit
0121794af9
451 changed files with 41339 additions and 10887 deletions
|
|
@ -20,8 +20,9 @@ USER_MANUAL_DEPS = acknowledgements.txt cables.txt config-notes.txt \
|
|||
stable-hcl.txt
|
||||
|
||||
DEVELOPER_GUIDE_DEPS = contact-closure.txt design.txt developers.txt \
|
||||
developer-guide.txt hid-subdrivers.txt macros.txt \
|
||||
new-clients.txt new-drivers.txt net-protocol.txt sock-protocol.txt
|
||||
developer-guide.txt hid-subdrivers.txt macros.txt new-clients.txt \
|
||||
new-drivers.txt net-protocol.txt nutdrv_qx-subdrivers.txt \
|
||||
snmp-subdrivers.txt sock-protocol.txt
|
||||
|
||||
CABLES_DEPS = cables/apc-rs500-serial.txt \
|
||||
cables/apc.txt cables/ge-imv-victron.txt cables/imv.txt \
|
||||
|
|
@ -34,9 +35,12 @@ CABLES_IMAGES = images/cables/73-0724.png images/cables/940-0024C.jpg \
|
|||
images/cables/mge-db9-rj12.jpg images/cables/mge-db9-rj45.jpg \
|
||||
images/cables/SOLA-330.png
|
||||
|
||||
EXTRA_DIST = $(SHARED_DEPS) $(USER_MANUAL_DEPS) $(DEVELOPER_GUIDE_DEPS) \
|
||||
$(CABLES_DEPS) FAQ.txt nut-hal.txt nut-qa.txt packager-guide.txt snmp.txt \
|
||||
$(IMAGE_FILES) $(CABLES_IMAGES) docinfo.xml
|
||||
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
|
||||
|
||||
NUT_SPELL_DICT = nut.dict
|
||||
EXTRA_DIST = $(ALL_TXT_SRC) $(SHARED_DEPS) $(IMAGE_FILES) \
|
||||
$(CABLES_IMAGES) docinfo.xml $(NUT_SPELL_DICT)
|
||||
|
||||
ASCIIDOC_HTML_SINGLE = user-manual.html \
|
||||
developer-guide.html \
|
||||
|
|
@ -74,13 +78,14 @@ website:
|
|||
endif !HAVE_ASCIIDOC
|
||||
|
||||
clean-local:
|
||||
rm -rf *.pdf *.html *.chunked docbook-xsl.css
|
||||
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:
|
||||
cd ../tools; $(MAKE) $(AM_MAKEFLAGS) website
|
||||
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
|
||||
|
|
@ -116,4 +121,27 @@ A2X_COMMON_OPTS = $(ASCIIDOC_VERBOSE) --attribute icons \
|
|||
.txt.pdf: docinfo.xml
|
||||
$(A2X) $(A2X_COMMON_OPTS) --attribute=pdf_format --format=pdf -a docinfo1 $<
|
||||
|
||||
if HAVE_ASPELL
|
||||
# FIXME: also check ../{NEWS,README,UPGRADING}+other dirs
|
||||
# Non-interactively spell check all documentation source files.
|
||||
# This is useful for Buildbot and automated QA processing
|
||||
# FIXME: how to present output (std{out,err}, single file or per target)?
|
||||
spellcheck:
|
||||
@for docsrc in $(ALL_TXT_SRC); do \
|
||||
echo "Spell checking on $$docsrc"; \
|
||||
LANG=C $(ASPELL) -a -t -p $(NUT_SPELL_DICT) < $$docsrc | grep [^*]; \
|
||||
done
|
||||
# Interactively spell check all documentation source files
|
||||
spellcheck-interactive:
|
||||
@for docsrc in $(ALL_TXT_SRC); do\
|
||||
echo "Spell checking on $$docsrc"; \
|
||||
LANG=C $(ASPELL) check -p $(NUT_SPELL_DICT) $$docsrc; \
|
||||
done
|
||||
else !HAVE_ASPELL
|
||||
spellcheck:
|
||||
@echo "Documentation spell check not available since 'aspell' was not found."
|
||||
spellcheck-interactive:
|
||||
@echo "Documentation spell check not available since 'aspell' was not found."
|
||||
endif !HAVE_ASPELL
|
||||
|
||||
.PHONY: html html-single pdf website
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue