[NEW] Texinfo support, Docbook support

Some more documentation formats. Perhaps ccollect wants to become
a GNU package?
This commit is contained in:
Nico Schottelius 2006-05-12 15:41:49 +02:00
parent 26edc63c02
commit a58ba2e1cf
2 changed files with 16 additions and 5 deletions

View file

@ -6,6 +6,8 @@
INSTALL=install
CCOLLECT=ccollect.sh
LN=ln -sf
ASCIIDOC=asciidoc
DOCBOOKTOTEXI=docbook2x-texi
prefix=/usr/packages/ccollect-git
bindir=$(prefix)/bin
@ -33,10 +35,19 @@ install-link: install-script
install-script:
$(INSTALL) -D -m 0755 -s $(CCOLLECT) $(destination)
documentation:
@echo "Generating HTML-documentation (de en) ..."
@asciidoc -n -o doc/ccollect.html doc/ccollect.text
@asciidoc -n -o doc/ccollect-DE.html doc/ccollect-DE.text
documentation: doc/ccollect.html doc/ccollect-DE.html
@echo "Generated documentation"
# @asciidoc -n -o doc/ccollect.html doc/ccollect.text
# @asciidoc -n -o doc/ccollect-DE.html doc/ccollect-DE.text
%.html: %.text
${ASCIIDOC} -n -o $@ $<
%.docbook: %.text
${ASCIIDOC} -n -b docbook -o $@ $<
%.texi: %.docbook
${DOCBOOKTOTEXI} --to-stdout $< > $@
#
# Developer targets

View file

@ -25,7 +25,7 @@ FULL_VERSION="ccollect $VERSION ($RELEASE)"
# DDATE: how the user should see it in our output
#
CDATE="date +%Y-%m-%d-%H%M"
DDATE='date "+%Y-%m-%d %H:%M:%S"'
DDATE="date"
#
# unset parallel execution