Guest User

Untitled

a guest
Nov 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. # This makefile uses pdflatex instead of latexmk, which will only compile tex files that has changed.
  2. # This makefile works great with dropbox or other online storage services.
  3. # If there is no need to merge all the files, comment out line 13.
  4.  
  5. # list all the tex files
  6. texfiles = $(shell echo *.tex)
  7. # change all the suffix into pdf
  8. output = $(texfiles:.tex=.pdf)
  9.  
  10. # build requires all the pdf files
  11. all: $(output)
  12. # merge all the pdf files
  13. pdfjoin $(output) -o merge.pdf
  14. # remove all the other files
  15. rm *.aux *.log
  16.  
  17. # all pdf files depends on tex file with same name
  18. %.pdf: %.tex
  19. # use pdflatex to generate pdf. the $< means all the first dependency
  20. pdflatex $<
  21.  
  22. clean:
  23. rm *.pdf *.aux *.log
Add Comment
Please, Sign In to add comment