Skip to content
Snippets Groups Projects
Commit b97ef834 authored by Timothy B. Terriberry's avatar Timothy B. Terriberry
Browse files

spec: Fix out of tree builds for the specification

The package enumeration tests in configure weren't relative to the
 ${srcdir}, and the Makefile.am rules didn't handle a destination
 directory different from the source directory.
parent 91203fdf
No related branches found
No related tags found
No related merge requests found
......@@ -104,11 +104,12 @@ if test "x$ac_build_spec" = "xyes"; then
AC_CHECK_PROG(HAVE_PDFLATEX, pdflatex, yes)
AC_CHECK_PROG(HAVE_BIBTEX, bibtex, yes)
AC_CHECK_PROG(HAVE_TRANSFIG, fig2dev, yes)
if test -r doc/spec/spec.tex; then
AC_MSG_NOTICE([Checking for packages in ${srcdir}/doc/spec/spec.tex...])
if test -r ${srcdir}/doc/spec/spec.tex; then
if test "x$HAVE_PDFLATEX" = "xyes"; then
if test "x$HAVE_BIBTEX" = "xyes"; then
if test "x$HAVE_TRANSFIG" = "xyes"; then
tex_pkg_list=`fgrep usepackage doc/spec/spec.tex | grep \{ | grep -v ltablex`
tex_pkg_list=`fgrep usepackage ${srcdir}/doc/spec/spec.tex | grep \{ | grep -v ltablex`
tex_pkg_ok="yes"
for pkg_line in $tex_pkg_list; do
pkg_name=`echo $pkg_line | sed -e 's/.*{\(.*\)}.*/\1/'`
......
......@@ -31,10 +31,13 @@ if BUILD_SPEC
# long tables require the .aux file to start from scratch
Theora.pdf : $(SPEC_SRCS) $(FIG_OBJS) vp3huff.tex
-$(RM) spec.aux
pdflatex -interaction nonstopmode spec.tex
bibtex spec.aux
pdflatex -interaction nonstopmode spec.tex
pdflatex -interaction nonstopmode spec.tex
-cd $(srcdir) && TEXINPUTS=".:$(CURDIR):" pdflatex \
-interaction nonstopmode -output-directory "$(CURDIR)" spec.tex
BIBINPUTS="$(srcdir):.:" BSTINPUT="$(srcdir):.:" bibtex spec.aux
cd $(srcdir) && TEXINPUTS=".:$(CURDIR):" pdflatex \
-interaction nonstopmode -output-directory "$(CURDIR)" spec.tex
cd $(srcdir) && TEXINPUTS=".:$(CURDIR):" pdflatex \
-interaction nonstopmode -output-directory "$(CURDIR)" spec.tex
mv spec.pdf $@
else
Theora.pdf :
......
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