Permalink
Browse files

ydtm: add Makefile

  • Loading branch information...
1 parent b71137c commit f4694cb731bb889add529da1b333f4ceaac0c720 Pierre-Evariste.Dagand@cis.strath.ac.uk committed Oct 26, 2010
Showing with 48 additions and 0 deletions.
  1. +48 −0 papers/ydtm-rev/Makefile
View
@@ -0,0 +1,48 @@
+################
+#### PDFLaTeX
+
+PDFTEX = pdflatex
+PSTEX = latex
+LATEXOPTS = #-interaction=nonstopmode
+
+
+################
+## Sources
+
+SRCS=ydtm-rev.tex
+DEPS := $(wildcard *.tex)
+BIBS := $(wildcard *.bib)
+
+################
+## Make machinery
+
+.SUFFIXES : .tex .pdf .ps
+
+DOCPS := $(SRCS:.tex=.pdf)
+DOCPDF := $(SRCS:.tex=.ps)
+
+.tex.pdf:
+ $(PDFTEX) $<
+ bibtex $*
+ $(PDFTEX) $<
+ if egrep Rerun $*.log; then $(PDFTEX) $< ; fi
+
+.tex.ps:
+ $(PSTEX) $<
+ bibtex $*
+ $(PSTEX) $<
+ if egrep Rerun $*.log; then $(PSTEX) $< ; fi
+ dvips -t letter $*.dvi
+
+################
+## Targets
+
+all: paper
+
+paper.pdf: $(DEPS) pig.sty $(BIBS)
+
+paper.ps: $(DEPS) pig.sty $(BIBS)
+
+paper: $(DOCPDF) $(DOCPS)
+
+

0 comments on commit f4694cb

Please sign in to comment.