]> git.lizzy.rs Git - rust.git/commit
Auto merge of #22169 - gfxmonk:disable-docs, r=steveklabnik
authorbors <bors@rust-lang.org>
Wed, 11 Feb 2015 08:54:30 +0000 (08:54 +0000)
committerbors <bors@rust-lang.org>
Wed, 11 Feb 2015 08:54:30 +0000 (08:54 +0000)
commit1500df8934431dd7842827209528211ae53ded12
tree7637928303b7672561b783763d7e2c2a998a8128
parent0047f8bbd8f94c7ba54d42eb7272c89a48d6ae54
parent2a367b9330dc9208389a052e103d5e91f0262fbe
Auto merge of #22169 - gfxmonk:disable-docs, r=steveklabnik

`make docs` fails when (xe)latex is not installed. The output is pretty weird, looks like it's doing some `eval` tricks but something is blank:

    /bin/sh: -output-directory=.: command not found
    /home/tim/dev/rust/rust/mk/docs.mk:220: recipe for target 'doc/reference.pdf' failed

I have neither latex or xelatex installed. It seems like the following snippet is meant for me, but the logic is backwards:

    ifeq ($(CFG_XELATEX),)
        CFG_LATEX := $(CFG_XELATEX)
        XELATEX = 1
      else
        $(info cfg: no xelatex found, disabling LaTeX docs)
        NO_PDF_DOCS = 1
    endif

I verified with:

    $ make doc/reference.pdf CFG_XELATEX=/bin/foo
    cfg: no xelatex found, disabling LaTeX docs