Makefile (1012B)
1 NAME=continuum-granular-manuscript1 2 DEPS=$(NAME).tex 3 4 $(NAME).pdf: $(DEPS) BIBnew.bib 5 latexmk -pdf $(NAME).tex 6 7 .PHONY: auto 8 auto: $(DEPS) 9 #echo $^ | tr ' ' '\n' | entr -s 'make $(NAME).pdf' 10 latexmk -pvc -pdf -f $(NAME).tex 11 12 .PHONY: edit 13 edit: $(DEPS) 14 $$EDITOR $(DEPS) 15 16 .PHONY: view 17 view: $(NAME).pdf 18 xdg-open $(NAME).pdf & 19 20 BIBnew.bib: $(NAME).tex 21 cp ~/articles/own/BIBnew.bib $@ 22 23 clean: 24 @rm -f $(NAME).pdf 25 @rm -f *.aux 26 @rm -f $(NAME).glo 27 @rm -f $(NAME).idx 28 @rm -f $(NAME).log 29 @rm -f $(NAME).toc 30 @rm -f $(NAME).ist 31 @rm -f $(NAME).acn 32 @rm -f $(NAME).acr 33 @rm -f $(NAME).alg 34 @rm -f $(NAME).bbl 35 @rm -f $(NAME).blg 36 @rm -f $(NAME).dvi 37 @rm -f $(NAME).glg 38 @rm -f $(NAME).gls 39 @rm -f $(NAME).ilg 40 @rm -f $(NAME).ind 41 @rm -f $(NAME).lof 42 @rm -f $(NAME).lot 43 @rm -f $(NAME).maf 44 @rm -f $(NAME).mtc 45 @rm -f $(NAME).mtc1 46 @rm -f $(NAME).out 47 @rm -f $(NAME).synctex.gz 48 @rm -f $(NAME).fdb_latexmk 49 @rm -f $(NAME).fls 50 @rm -f $(NAME).xdy 51 @rm -f $(NAME)-blx.bib 52 @rm -f $(NAME).run.xml 53 @rm -f BIBnew.bib