# Build everything necessary to compile the wiki.
-SUBDIRS = posts/Hooke posts/problempack posts/rel-vcs posts/sawsim \
- posts/yacc2dot posts/Xmodmap posts/XSLT/chapter posts/XSLT/code
+SUBDIRS = posts/drexel-thesis posts/Hooke posts/problempack posts/rel-vcs \
+ posts/sawsim posts/yacc2dot posts/Xmodmap posts/XSLT/chapter posts/XSLT/code
TARGETS = all clean
all :
--- /dev/null
+[[!template id=gitrepo repo=drexel-thesis]]
+
+Drexel, like every other academic institution, has very particular
+standards for the format of a Masters or Ph.D. Thesis. The library
+publishes a [requirements manual][]. The [[LaTeX]] wisdom of
+generations of grad students has been assembled into the
+`drexel-thesis` class which you, dear reader, can use to easily format
+your thesis.
+
+I'm the current maintainer, so besides the [post][] in the department
+wiki, I'm including a page in this blog.
+
+Your compiled thesis will look something like [[example.pdf]] (or, in
+draft mode, [[example-draft.pdf]]). Take a look at the
+[[manual|manual.pdf]] to get started. You might also want to look at
+how I've used the class in my own [[thesis]].
+
+[requirements manual]: http://www.library.drexel.edu/services/thesis/thesismanual.pdf
+
+[[!tag tags/latex]]
--- /dev/null
+REPO = http://www.physics.drexel.edu/~wking/code/git/drexel-thesis.git
+PACKAGE = drexel-thesis
+TARGETS = drexel-thesis.pdf example.pdf example-draft.pdf
+
+.PHONY : all checkout clean
+
+all : $(TARGETS)
+
+clean :
+ rm -rf $(PACKAGE) $(TARGETS)
+
+$(PACKAGE) :
+ git clone $(REPO) $@
+
+checkout : $(PACKAGE)
+ (cd $(PACKAGE) && git pull)
+
+.PHONY : $(TARGETS:%=$(PACKAGE)/%)
+$(TARGETS:%=$(PACKAGE)/%) : $(PACKAGE)/% : checkout
+ $(MAKE) -C $(PACKAGE) $(@:$(PACKAGE)/%=%)
+
+$(TARGETS) : % : $(PACKAGE)/%
+ cp $< $@