Makefile 760 B

1234567891011121314151617181920212223242526272829303132333435
  1. all: main.pdf
  2. # apt-get install texlive-full
  3. define Show =
  4. # -killall evince
  5. evince main.pdf 2>/dev/null &
  6. endef
  7. main.pdf: *.tex *.bib Strona_tytulowa_pracy_magisterskiej_pisanej_w_jezyku_polskim.pdf agda-tex/*.tex deunicodize.sh podstawy/*
  8. sh deunicodize.sh
  9. rm -f main.aux
  10. latex --shell-escape main.tex
  11. bibtex main
  12. latex --shell-escape main.tex
  13. latex --shell-escape main.tex
  14. -grep --color=auto Warn main.log || echo 'Nie ma ostrzeżeń' # Grep zwraca błąd jak nic nie znajdzie
  15. rm -f *.aux
  16. $(Show)
  17. .PHONY: archive clean show fast
  18. fast:
  19. latex --shell-escape main.tex
  20. archive:
  21. git archive --prefix=main-h-adapt/ --output=../main-h-adapt.zip HEAD
  22. clean:
  23. git clean -n -X | grep -v swp | sed 's/Would remove //' | xargs rm -f
  24. show:
  25. $(Show)