Skip to content
Snippets Groups Projects
Commit 8a6e44a4 authored by Christian Engwer's avatar Christian Engwer
Browse files

[am]

fix out-of-source build for latex and wml
-> fix oos-build for dune-grid-howto

[[Imported from SVN: r6882]]
parent a5326996
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
# rerun TEX if log-file suggests that
.tex.dvi:
export TEXINPUTS=.:$(abs_builddir):${TEXINPUTS}:; \
set -e; builddir=$$PWD; \
pushd $(srcdir); $(TEX) -output-directory=$$builddir </dev/null $*; popd; \
while grep 'Rerun to get' $*.log > /dev/null ; do \
......@@ -21,10 +22,16 @@
fi
.dvi.pdf:
TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(DVIPDF) $*
export TEXINPUTS=.:$(abs_builddir):${TEXINPUTS}:; \
pushd $(srcdir); \
$(DVIPDF) $(abs_builddir)/$*.dvi $(abs_builddir)/$*.pdf; \
popd
.dvi.ps:
TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(DVIPS) $* -o
export TEXINPUTS=.:$(abs_builddir):${TEXINPUTS}:; \
pushd $(srcdir); \
$(DVIPS) $(abs_builddir)/$*.dvi -o $(abs_builddir)/$*.ps; \
popd
TEXCLEANFILES = *.aux *.bbl *.blg *.log *.out *.toc *.dvi
clean-local: latex-clean
......
......@@ -21,7 +21,7 @@ endif
# how to build html files
if WML
.wml.html:
$(WMLCMD) -I $(abs_srcdir) $(abs_builddir)/$< -o $(abs_builddir)/$@
$(WMLCMD) -I $(abs_srcdir) $< -o $(abs_builddir)/$@
endif
####
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment