Fix out of tree building without asciidoc

We tried to copy the .html.git file from the out of tree build dir, not
from the source dir.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2014-06-08 13:30:56 +02:00 committed by Dirk Hohndel
parent bded22f2f6
commit bd3dd30518

View file

@ -32,7 +32,7 @@ $(OUT)%.pdf: %.txt
$(OUT)%.html: %.txt
@echo "if asciidoc isn't found the html file included in the sources is copied"
$(ASCIIDOC) -a toc -a toclevels=3 -a themedir=$(PWD) -a theme=$(THEME) -a stylesdir=$(PWD) \
-o $@ $< || cp $@.git $@
-o $@ $< || cp $(<:%.txt=%.html.git) $@
# Alternatively::
$(OUT)$(DOCNAME).xhtml: $(DOCSOURCE)