You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
699B

  1. NAME = document
  2. all: build
  3. build: #build_one build_bib build_index build_two
  4. pdflatex $(NAME).tex
  5. bibtex $(NAME).aux
  6. makeglossaries $(NAME)
  7. makeindex -s $(NAME).ist -t $(NAME).glg -o $(NAME).gls $(NAME).glo
  8. @echo
  9. @echo
  10. @echo "Glossaries finished. Rebuild latex."
  11. @echo
  12. pdflatex $(NAME).tex
  13. pdflatex $(NAME).tex
  14. build_one:
  15. pdflatex $(NAME).tex
  16. build_bib:
  17. bibtex $(NAME).aux
  18. build_index:
  19. makeglossaries $(NAME)
  20. makeindex -s $(NAME).ist -t $(NAME).glg -o $(NAME).gls $(NAME).glo
  21. clean:
  22. @rm -vf output/*
  23. @rm -vf *.log *.out *.aux *.pdf
  24. @rm -vf *.bbl *.blg
  25. @rm -vf *.gls* *.glo *.glg *.ist *.acn *.acr *.alg
  26. @rm -vf *.toc
  27. @rm -vf *.gz *.bak
  28. .PHONY: all build build_one clean