Added makefile
parent
8878c279ee
commit
91c948340b
|
@ -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
|
|
@ -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"
|
||||||
|
}
|
Loading…
Reference in New Issue