mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / Thesis / Makefile
1 REPO = git://tremily.us/thesis.git
2 PACKAGE = thesis
3
4 .PHONY : all checkout clean
5
6 all : draft.pdf
7
8 clean :
9         rm -rf $(PACKAGE) draft.pdf
10
11 $(PACKAGE) :
12         git clone $(REPO) $@
13
14 checkout : $(PACKAGE)
15         (cd $(PACKAGE) && git pull)
16
17 .PHONY : $(PACKAGE:%=%/thesis.pdf)
18 $(PACKAGE:%=%/thesis.pdf) : checkout
19         (cd $(PACKAGE) && scons)
20
21 draft.pdf : $(PACKAGE:%=%/thesis.pdf)
22         cp $(PACKAGE:%=%/thesis.pdf) $@