[Swift-commit] r3295 - text/internals/trunk
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Fri Apr 30 10:19:36 CDT 2010
Author: aespinosa
Date: 2010-04-30 10:19:36 -0500 (Fri, 30 Apr 2010)
New Revision: 3295
Added:
text/internals/trunk/Makefile
Log:
Makefile for building the manuscript
Added: text/internals/trunk/Makefile
===================================================================
--- text/internals/trunk/Makefile (rev 0)
+++ text/internals/trunk/Makefile 2010-04-30 15:19:36 UTC (rev 3295)
@@ -0,0 +1,39 @@
+# set latexfile to the name of the main file without the .tex
+latexfile = internals
+# put the names of figure files here. include the .eps
+figures =
+TEX = latex
+BUILDIR = build
+
+# *.fig files may be in ./Figs
+vpath %.fig Figs
+
+# reruns latex if needed. to get rid of this capability, delete the
+# three lines after the rule.
+# idea from http://ctan.unsw.edu.au/help/uk-tex-faq/Makefile
+$(latexfile).dvi : $(figures) $(latexfile).tex
+ while ($(TEX) -output-directory=$(BUILDIR) $(latexfile); \
+ grep -q "Rerun to get cross" $(BUILDIR)/$(latexfile).log ) do true ; \
+ done
+
+
+%.eps : %.fig
+ fig2dev -L eps $< > $@
+
+$(latexfile).pdf : $(latexfile).ps
+ ps2pdf $(latexfile).ps $(latexfile).pdf
+
+pdf : $(latexfile).pdf
+
+$(latexfile).ps : $(latexfile).dvi
+ dvips $(latexfile)
+
+ps : $(latexfile).ps
+
+$(latexfile).tar.gz : $(figures) $(latexfile).tex
+ tar -czvf $(latexfile).tar.gz $(figures) $(latexfile).tex Figs/*.fig
+
+tarball: $(latexfile).tar.gz
+
+clean:
+ @rm -f $(BUILDIR)/*.dvi $(BUILDIR)/*.ps $(BUILDIR)/*.pdf
More information about the Swift-commit
mailing list