Src=alg4sqo-main all : dirs tex bib tex tex done final : dirs tex bib tex tex copy done one : dirs tex done copy : cp $(HOME)/tmp/$(Src).pdf ./pdf view : evince $(HOME)/tmp/$(Src).pdf & done : embed @printf "\n\n\n==============================================\n" @printf "see output in $(HOME)/tmp/$(Src).pdf\n" @printf "==============================================\n\n\n" @printf "\n\nWarnings (may be none):\n\n" grep warning $(HOME)/tmp/${Src}.log # evince $(HOME)/tmp/$(Src).pdf dirs : - [ ! -d $(HOME)/tmp ] && mkdir $(HOME)/tmp tex : - pdflatex -output-directory=$(HOME)/tmp $(Src) embed : @ gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite \ -sOutputFile=$(HOME)/tmp/$(Src)-embedded.pdf $(HOME)/tmp/$(Src).pdf @ mv $(HOME)/tmp/$(Src)-embedded.pdf $(HOME)/tmp/$(Src).pdf bib : - bibtex $(HOME)/tmp/$(Src)