Guest User

Untitled

a guest
Jun 7th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.69 KB | None | 0 0
  1. DOCUMENT = "CS131 Lecture Notes"
  2.  
  3. docfile = notes
  4. texfiles = *.tex tex/*.tex
  5. stylefile = style.sty
  6. output = *.aux *.loa *.log *.out *.toc tex/*.aux *.bbl
  7.  
  8. .PHONY: all clean distclean test
  9.  
  10. all: $(docfile).pdf clean
  11.  
  12. $(docfile).pdf: $(texfiles) $(stylefile)
  13.         pdflatex $(docfile)
  14.         @ if test -e $(docfile).bib; \
  15.                 then bibtex $(docfile); pdflatex $(docfile); \
  16.           fi
  17.         pdflatex $(docfile)
  18.  
  19. clean:
  20.         @- $(RM) $(output)
  21.  
  22. distclean: clean
  23.         rm $(docfile).pdf
  24.  
  25. check: $(texfiles)
  26.         hunspell -d en_GB -t $(texfiles)
  27.  
  28. test: check
  29.         pdflatex -draftmode $(docfile)
  30.         pdflatex -draftmode $(docfile)
  31.         $(MAKE) clean
Add Comment
Please, Sign In to add comment