summaryrefslogtreecommitdiff
path: root/tbc/certificate/Makefile
blob: a8b60b5e369ec9aeb2e0357ec17677ed6a398da2 (plain)
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
# Makefile for Python Textbook Companion Certificate

# bashful package available @
# http://www.ctan.org/tex-archive/macros/latex/contrib/bashful

# pst-barcode package available @
# http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-barcode

# target is not a real file
.PHONY: help tbc clean

# following line is because on server texlive is not installed system-wide
export PATH := /usr/local/texlive/2014/bin/x86_64-linux:$(PATH)

# default help
help:
	@echo "current make version is: "$(MAKE_VERSION)
	@echo "Please use \`make <target>' where <target> is one of"
	@echo ""
	@echo "tbc	        Generate Python tbc certificate."
	@echo "clean		clean all tmp and pdf files."
	@echo "help		Show this help."
	@echo ""

# certificate
tbc:	tbc_certificate.pdf

tbc_certificate.pdf: tbc_certificate.tex fossee.png bashful.sty
	pdflatex -shell-escape tbc_certificate.tex

clean:
	@echo "removing all tmp+pdf files"
	-rm -rvf *.pdf *~ *.aux *.log *.vrb *.out *.toc *.nav *.snm
	-rm -rvf *.std* *.sh