Skip to content

Commit 1500df8

Browse files
committed
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
2 parents 0047f8b + 2a367b9 commit 1500df8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/docs.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ endif
8787

8888
# Check for xelatex
8989

90-
ifeq ($(CFG_XELATEX),)
90+
ifneq ($(CFG_XELATEX),)
9191
CFG_LATEX := $(CFG_XELATEX)
9292
XELATEX = 1
9393
else

0 commit comments

Comments
 (0)