-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (37 loc) · 1.44 KB
/
Makefile
File metadata and controls
44 lines (37 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
COURSEID = pensePython
APPNAME = pensePython
LOGINREQ = false
LOGLEVEL = 10
COURSEURL = https://panda.ime.usp.br
#
#
TEMPLATEDEFS = -A course_id=$(COURSEID) -A appname=$(APPNAME) -A loglevel=$(LOGLEVEL) -A course_url=$(COURSEURL) -A login_required=$(LOGINREQ)
SPHINXOPTS = -a -E
SPHINXBUILD = /usr/local/bin/sphinx-build
PAPER =
BUILDDIR = static/$(COURSEID)
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(TEMPLATEDEFS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
.PHONY: help clean pensePython
help:
@echo "Please use \'make <target>' where <target> is one of"
@echo " pensePython para compilar a tradução do livro Think Python"
all: pensePython
clean:
-rm -rf static/*
-rm -rf pensePython/*~
############################################################
# pensePython: tradução do livro Think Python
pensePython: COURSEID = pensePython
pensePython: APPNAME = pensePython
pensePython: LOGINREQ = false
pensePython: COURSEURL = https://panda.ime.usp.br
pensePython:
$(SPHINXBUILD) -d static/$(COURSEID)/doctrees $(SPHINXOPTS) -A project='Pense em Python' $(TEMPLATEDEFS) pensePython static/$(COURSEID)