Advertisement
gpulover

Makefile-LaTeX

Oct 15th, 2021
2,574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.55 KB | None | 0 0
  1. #---------------------------------------------------------------------
  2. #
  3. # MAKE FILE FOR TEX COMPILER
  4. #
  5. #---------------------------------------------------------------------
  6.  
  7. NAME = main
  8.  
  9. .SUFFIXES: .tex .dvi .ps .pdf
  10.  
  11.  
  12. #---------------------------------------------------------------------
  13. # Runs latex a few times, with bibtex in there too
  14. #---------------------------------------------------------------------
  15.  
  16. .tex.dvi:
  17.     pdflatex  $*
  18.     bibtex $*
  19.     pdflatex  $*
  20.     bibtex $*
  21.     pdflatex $*
  22.  
  23. #---------------------------------------------------------------------
  24. # Target 1 (default) : LaTeX output in ps
  25. #---------------------------------------------------------------------
  26.  
  27. all: $(NAME).ps
  28. $(NAME).dvi: $(NAME).tex
  29. $(NAME).ps: $(NAME).dvi
  30.  
  31. #---------------------------------------------------------------------
  32. # Target 2 : pdf LaTeX output in pdf
  33. #---------------------------------------------------------------------
  34.  
  35. #pdf: $(NAME).pdf
  36. #$(NAME).pdf: $(NAME).tex
  37.  
  38.  
  39. #---------------------------------------------------------------------
  40. #  clean temp files
  41. #---------------------------------------------------------------------
  42.  
  43. clean:
  44.     rm -f *.blg
  45.     rm -f *.lof
  46.     rm -f *.lot
  47.     rm -f *.out
  48.     rm -f *.toc
  49.     rm -f *.bbl
  50.     rm -f *.log
  51.     rm -f *.aux
  52.     rm -f *.end
  53.     rm -f *.dvi
  54.     rm -f *.ps
  55.     rm -f *~
  56.     rm -f *Notes.bib
  57.  
  58. veryclean:
  59.     rm -f *.blg
  60.     rm -f *.lof
  61.     rm -f *.lot
  62.     rm -f *.out
  63.     rm -f *.toc
  64.     rm -f *.bbl
  65.     rm -f *.log
  66.     rm -f *.aux
  67.     rm -f *.end
  68.     rm -f *.dvi
  69.     rm -f *.ps
  70.     rm -f $(NAME).pdf  
  71.     rm -f *~
  72.     rm -f *Notes.bib
  73.  
  74. #EOF
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement