diff bachelor_middle_draft/Makefile @ 5:767917363b6f

Add template to draft for bachelor middle
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Sat, 25 Oct 2014 18:00:33 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bachelor_middle_draft/Makefile	Sat Oct 25 18:00:33 2014 +0900
@@ -0,0 +1,27 @@
+# target name
+TARGET=bachelor_middle_draft
+
+# dependencies
+$(TARGET).pdf : $(TARGET).dvi
+	dvipdfmx $<
+
+$(TARGET).dvi : $(wildcard **/*.tex) $(TARGET).tex
+	platex $(TARGET).tex
+	platex $(TARGET).tex
+	platex $(TARGET).tex
+
+
+# commands
+.PHONY : clean all open remake
+
+clean:
+	rm -f *.dvi *.aux *.log *.pdf *.ps *.gz *.bbl *.blg *.toc *~ *.core
+
+all: $(TARGET).pdf
+
+open: $(TARGET).pdf
+	open $(TARGET).pdf
+
+remake:
+	make clean
+	make all