瀏覽代碼

Fixed BibTex in make rules.

Taddeus Kroes 13 年之前
父節點
當前提交
d4a8b2cc25
共有 3 個文件被更改,包括 29 次插入2 次删除
  1. 1 0
      .gitignore
  2. 14 0
      docs/report.bib
  3. 14 2
      docs/rules.mk

+ 1 - 0
.gitignore

@@ -12,3 +12,4 @@
 *.snm
 src/old/*
 src/old_kivy/*
+build/*

+ 14 - 0
docs/report.bib

@@ -0,0 +1,14 @@
+@unpublished{TUIOspecification,
+    author = "test",
+    title  = "test",
+    note   = "url: http://tuio.org/?specification",
+}
+
+article{TUIOarticle,
+    author  = {Martin Kaltenbrunner, Till Bovermann, Ross Bencina, Enrico
+               Costanza},
+    title   = {TUIO: A protocol for table-top tangible user interfaces},
+    journal = {Proc. of the The 6th Int'l Workshop on Gesture in Human-Computer
+               Interaction and Simulation},
+    pages   = }
+}

+ 14 - 2
docs/rules.mk

@@ -1,9 +1,21 @@
-.PHONY: docs
+report=report
 
-docs: $(b)proposal.pdf $(b)presentation.pdf $(b)report.pdf
+docs: $(b)proposal.pdf $(b)presentation.pdf $(b)$(report).pdf $(b)$(report).bbl
 
 $(b)%.pdf: $(d)%.tex
 	mkdir -p `dirname $@`
 	cd $(d); \
 	pdflatex -halt-on-error -interaction=nonstopmode \
 		-output-directory "../`dirname $@`" `basename $^`
+
+$(b)$(report).bbl: $(d)$(report).bib
+	mkdir -p `dirname $@`
+	cp $(d)$(report).bib $(b)$(report).bib
+	cd $(b); bibtex8 $(report).aux
+	cd $(d); \
+	pdflatex -halt-on-error -interaction=nonstopmode \
+		-output-directory "../`dirname $@`" $(report).tex; \
+	pdflatex -halt-on-error -interaction=nonstopmode \
+		-output-directory "../`dirname $@`" $(report).tex
+
+.PHONY: docs