1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-26 02:46:13 -04:00

Improve rebuilding using asciidoc by using files in .deps/

This commit is contained in:
Jonas Fonseca 2006-01-12 11:59:11 +01:00 committed by Jonas Fonseca
parent a7397ea328
commit fd1c3510f5

View File

@ -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)