Commit e9979ea8 authored by Anton Midyukov's avatar Anton Midyukov

doc/Makefile: fix publish, do not build before publish

The list of build files has become smaller than the list of files to publish. Publishing may occur from a location where documentation cannot be built.
parent c39d298e
...@@ -27,7 +27,10 @@ HTML_ARGS = -a data-uri --icons -r . \ ...@@ -27,7 +27,10 @@ HTML_ARGS = -a data-uri --icons -r . \
--xsltproc-opts='$(XSLT_ARGS)' $(COMMON_ARGS) --xsltproc-opts='$(XSLT_ARGS)' $(COMMON_ARGS)
# most convenient deliverables # most convenient deliverables
DOCS_OUT = mkimage-profiles.7 $(PROJECT).pdf $(PROJECT).html docbook-xsl.css DOCS_OUT = $(PROJECT).pdf $(PROJECT).html docbook-xsl.css
# files for publish
DOCS_FOR_PUBLISH = $(DOCS_OUT) mkimage-profiles.chunked mkimage-profiles.7
# intermediate files # intermediate files
DOCS_TMP = $(PROJECT).fo $(PROJECT).xml DOCS_TMP = $(PROJECT).fo $(PROJECT).xml
...@@ -37,9 +40,9 @@ DOCS_TMP = $(PROJECT).fo $(PROJECT).xml ...@@ -37,9 +40,9 @@ DOCS_TMP = $(PROJECT).fo $(PROJECT).xml
all: chunked xhtml pdf all: chunked xhtml pdf
# NB: destination defined externally # NB: destination defined externally
publish: all publish:
@if [ -n "$(DOCS_PUBLISH)" ]; then \ @if [ -n "$(DOCS_PUBLISH)" ]; then \
rsync -qa $(DOCS_OUT) "$(DOCS_PUBLISH)"; \ rsync -qa $(DOCS_FOR_PUBLISH) "$(DOCS_PUBLISH)"; \
fi fi
prep: prep:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment