changeset 1:7275328d2637

Add Makefile and hgignore
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Wed, 15 Apr 2015 13:41:58 +0900
parents fff20fb5b6b6
children c21ad8ebcb04
files .hgignore Makefile
diffstat 2 files changed, 37 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Wed Apr 15 13:41:58 2015 +0900
@@ -0,0 +1,10 @@
+syntax: glob
+
+.DS_Store
+*.swp
+
+*.log
+*.aux
+*.dvi
+*.toc
+*.cpt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Wed Apr 15 13:41:58 2015 +0900
@@ -0,0 +1,27 @@
+# target name
+TARGET=bare_conf
+
+# 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 *.cpt
+
+all: $(TARGET).pdf
+
+open: $(TARGET).pdf
+	open $(TARGET).pdf
+
+remake:
+	make clean
+	make all