1
0
Fork 0

Added makefile

master
Mike Gerwitz 2013-08-21 12:43:00 -04:00
parent 8878c279ee
commit 91c948340b
2 changed files with 30 additions and 0 deletions

22
Makefile 100644
View File

@ -0,0 +1,22 @@
# Builds specifications
.PHONY: default clean
default: lvspec.pdf
%.pdf: %.tex verstr.tex
pdflatex $* \
&& makeindex $(patsubst %.tex, %.idx, $<) \
&& pdflatex $< \
&& pdflatex $< \
|| rm $@
# outputs a version string to uniquely identify the document revision
# TODO: use tag name if matches current commit
verstr.tex:
git log -n1 --format=%h | tr -d '\n' > verstr.tex
test -z "$$( git status -s | grep -v '^?? ' )" \
|| echo -n '-dirty' >> verstr.tex
clean:
rm -f *.pdf

8
common.bib 100644
View File

@ -0,0 +1,8 @@
% Misc.
@misc{ brooks-law,
title="Brooks's law",
howpublished="Wikipedia",
month="Aug",
year="2013",
url="http://en.wikipedia.org/wiki/Brooks's_law"
}