forked from ungleich-public/ccollect
[NEW] Texinfo support, Docbook support
Some more documentation formats. Perhaps ccollect wants to become a GNU package?
This commit is contained in:
parent
26edc63c02
commit
a58ba2e1cf
2 changed files with 16 additions and 5 deletions
19
Makefile
19
Makefile
|
@ -6,6 +6,8 @@
|
||||||
INSTALL=install
|
INSTALL=install
|
||||||
CCOLLECT=ccollect.sh
|
CCOLLECT=ccollect.sh
|
||||||
LN=ln -sf
|
LN=ln -sf
|
||||||
|
ASCIIDOC=asciidoc
|
||||||
|
DOCBOOKTOTEXI=docbook2x-texi
|
||||||
|
|
||||||
prefix=/usr/packages/ccollect-git
|
prefix=/usr/packages/ccollect-git
|
||||||
bindir=$(prefix)/bin
|
bindir=$(prefix)/bin
|
||||||
|
@ -33,10 +35,19 @@ install-link: install-script
|
||||||
install-script:
|
install-script:
|
||||||
$(INSTALL) -D -m 0755 -s $(CCOLLECT) $(destination)
|
$(INSTALL) -D -m 0755 -s $(CCOLLECT) $(destination)
|
||||||
|
|
||||||
documentation:
|
documentation: doc/ccollect.html doc/ccollect-DE.html
|
||||||
@echo "Generating HTML-documentation (de en) ..."
|
@echo "Generated documentation"
|
||||||
@asciidoc -n -o doc/ccollect.html doc/ccollect.text
|
# @asciidoc -n -o doc/ccollect.html doc/ccollect.text
|
||||||
@asciidoc -n -o doc/ccollect-DE.html doc/ccollect-DE.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
|
# Developer targets
|
||||||
|
|
|
@ -25,7 +25,7 @@ FULL_VERSION="ccollect $VERSION ($RELEASE)"
|
||||||
# DDATE: how the user should see it in our output
|
# DDATE: how the user should see it in our output
|
||||||
#
|
#
|
||||||
CDATE="date +%Y-%m-%d-%H%M"
|
CDATE="date +%Y-%m-%d-%H%M"
|
||||||
DDATE='date "+%Y-%m-%d %H:%M:%S"'
|
DDATE="date"
|
||||||
|
|
||||||
#
|
#
|
||||||
# unset parallel execution
|
# unset parallel execution
|
||||||
|
|
Loading…
Reference in a new issue