Skip to content

Commit 332ccdf

Browse files
committed
Add Makefile target to regenerate the image used in the README
+ Switch to SVG format for higher quality.
1 parent 8d4f92f commit 332ccdf

4 files changed

Lines changed: 302 additions & 4 deletions

File tree

[2014] Classes in Python: You're Doing it Wrong/Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ CODE_OUTPUT=output
1111
PDFLATEX=pdflatex
1212
PDFLATEX_OPTS=-interaction=nonstopmode -halt-on-error -shell-escape
1313

14-
TEX_FILE=python-clases.tex
14+
BASENAME=python-clases
15+
TEX_FILE=${BASENAME}.tex
16+
PDF_FILE=${BASENAME}.pdf
1517

16-
.PHONY: all pdf clean
18+
.PHONY: all pdf clean cover
1719

18-
all : pdf
20+
all : pdf cover
21+
22+
cover: pdf
23+
pdf2svg $(PDF_FILE) pics/cover.svg
1924

2025
pdf: $(TEX_FILE)
2126
$(OUTPUTS_SCRIPT) $(CODE_ROOT) $(CODE_OUTPUT)

[2014] Classes in Python: You're Doing it Wrong/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ They are also `available as a PDF`__, always up-to-date (via git hooks).
88
* Language: Spanish
99
* License: `CC BY-SA 4.0 <http://creativecommons.org/licenses/by-sa/4.0/>`_
1010

11-
.. |PDF| image:: ./pics/portada.png
11+
.. |PDF| image:: ./pics/cover.svg
1212
.. _PDF: http://www.iaa.es/~vterron/python-clases.pdf
1313
__ PDF_

0 commit comments

Comments
 (0)