Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DOCUMENT = "CS131 Lecture Notes"
- docfile = notes
- texfiles = *.tex tex/*.tex
- stylefile = style.sty
- output = *.aux *.loa *.log *.out *.toc tex/*.aux *.bbl
- .PHONY: all clean distclean test
- all: $(docfile).pdf clean
- $(docfile).pdf: $(texfiles) $(stylefile)
- pdflatex $(docfile)
- @ if test -e $(docfile).bib; \
- then bibtex $(docfile); pdflatex $(docfile); \
- fi
- pdflatex $(docfile)
- clean:
- @- $(RM) $(output)
- distclean: clean
- rm $(docfile).pdf
- check: $(texfiles)
- hunspell -d en_GB -t $(texfiles)
- test: check
- pdflatex -draftmode $(docfile)
- pdflatex -draftmode $(docfile)
- $(MAKE) clean
Add Comment
Please, Sign In to add comment