Skip to content

Commit

Permalink
Add an example Makefile to demonstrate Latexmk
Browse files Browse the repository at this point in the history
  • Loading branch information
mhyee committed Apr 24, 2012
1 parent 0a64ddd commit f4302f5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Makefile.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# An example Makefile, demonstrating Latexmk
#
# Assumptions:
# - The .tex file is report.tex
# - It specifies report.bib as the bibliography
# - Perl is installed
# - latexmk.pl and uw-wkrpt.cls are in the working directory, instead of
# being installed to the system

.PHONY: all clean clean-all

all: report.tex report.bib latexmk.pl uw-wkrpt.cls
perl latexmk.pl -bibtex -pdf $<

clean:
perl latexmk.pl -c
rm -f report.bbl
rm -f report.run.xml
rm -f report-blx.bib

clean-all: clean
rm -f report.pdf
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ To simply this process, you may find [Latexmk][5] to be useful.
[5]: http://www.phys.psu.edu/~collins/software/latexmk-jcc/

Latexmk will run `pdflatex` and `bibtex` as many times as is necessary for you,
so you only need to call it once.
so you only need to call it once. See Makefile.example.

## Files

Expand All @@ -99,6 +99,7 @@ so you only need to call it once.
* The ChangeLog file is a record of the changes made to the software (before
this class was under version control).
* LICENSE contains a copy of the GNU General Public License.
* Makefile is the makefile for generating the uw-wkrpt class and documentation.
* uw-wkrpt.ins is the docstrip installer.
* uw-wkrpt.dtx is the docstrip document that contains the entire uw-wkrpt
package.
Expand All @@ -107,6 +108,7 @@ so you only need to call it once.
closely to the guidelines as possible.
* uw-wkrpt.bib is the bibliography or references list that is imported
by the example reports.
* Makefile.example is an example makefile that demonstrates the use of Latexmk.
* don-hires.pdf is a picture of Donald E. Knuth, acquired from his
website and used in workreport-sample.tex.

Expand Down

0 comments on commit f4302f5

Please sign in to comment.