mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Improve rebuilding using asciidoc by using files in .deps/
This commit is contained in:
parent
a7397ea328
commit
fd1c3510f5
@ -122,7 +122,7 @@ update-man: man
|
||||
$(call cmd,installdata,$(srcdir)elinks.conf.5,man/man5/)
|
||||
|
||||
clean-local:
|
||||
@$(RM) -r api $(GEN_TXT_DOCS) $(MAN_DOCS) $(HTML_DOCS) $(PDF_DOCS) *.tmp
|
||||
@$(RM) -r api $(GEN_TXT_DOCS) $(MAN_DOCS) $(HTML_DOCS) $(PDF_DOCS) *.tmp *.xml
|
||||
|
||||
# Autogenerated files.
|
||||
|
||||
@ -163,11 +163,15 @@ man_desc = `sed -n 's/:Description:\s*\(.*\)/\1/p' < $(subst .xml,.txt,$<)`
|
||||
man_hack = sed "s/^\(\.TH \"ELINKS[^\"]*\" [0-9] \).*/\1\"$(1)\" \"$(MAN_DATE)\" \"$(1)\"/" < $@ | \
|
||||
sed "s/@squote@/\\\\'/g" > $@.tmp && mv $@.tmp $@
|
||||
|
||||
-include .deps/*
|
||||
|
||||
%.html: %.txt asciidoc.conf
|
||||
$(call cmd,asciidoc,xhtml11)
|
||||
@-sed -n 's/include::\(.*\)\[.*/$@: \1/p' < $< > .deps/$@
|
||||
|
||||
%.xml: %.txt asciidoc.conf
|
||||
$(call cmd,asciidoc,docbook)
|
||||
@-sed -n 's/include::\(.*\)\[.*/$@: \1/p' < $< > .deps/$@
|
||||
|
||||
%.1: %.1.xml
|
||||
$(call cmd,xmlto,man)
|
||||
|
Loading…
Reference in New Issue
Block a user