Skip to content

Commit

Permalink
Add DEBUG; when set to 1 traceback will be shown
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Aug 23, 2024
1 parent 57b267b commit 8331672
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ PAPER ?=
BUILDDIR ?= _build

# logging variables
DEBUG ?= 0
LOGLEVEL =? WARNING
export LOGLEVEL=${LOGLEVEL}

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -ET -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
ALLSPHINXOPTS = -E -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
ifeq (${DEBUG}, 1)
ALLSPHINXOPTS += -T
endif
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

Expand Down

0 comments on commit 8331672

Please sign in to comment.