Migrated from Gitlab
This commit is contained in:
34
presentazione/Makefile
Normal file
34
presentazione/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
NAME = main
|
||||
OUTDIR = ../output
|
||||
|
||||
.DEFAULT_GOAL := all
|
||||
|
||||
.PHONY : all compile clean cleanall
|
||||
|
||||
|
||||
# -PHONY------------------------------------------------------------------------
|
||||
|
||||
all: compile
|
||||
@rm -f $(NAME).{aux,log,out,toc}
|
||||
@mkdir -p $(OUTDIR)
|
||||
@cp $(NAME).pdf $(OUTDIR)/$(NAME).pdf
|
||||
|
||||
compile:
|
||||
@echo "Compiling Presentation"
|
||||
@echo "Step 1/2 - pdflatex"
|
||||
@pdflatex -halt-on-error --synctex=1 -interaction=nonstopmode -draftmode $(NAME).ltx > $(NAME).tmp.log
|
||||
@grep '^!.*' --color=always $(NAME).tmp.log || rm -f $(NAME).tmp.log
|
||||
|
||||
@echo "Step 2/2 - pdflatex"
|
||||
@pdflatex -halt-on-error --synctex=1 -interaction=nonstopmode $(NAME).ltx > $(NAME).tmp.log
|
||||
@grep '^!.*' --color=always $(NAME).tmp.log || rm -f $(NAME).tmp.log
|
||||
|
||||
@echo "Compiled Presentation"
|
||||
|
||||
clean:
|
||||
@rm -f $(NAME).{aux,log,out,toc,synctex\(busy\),synctex.gz,bbl,bcf,blg,run.xml,dvi,fls,fdb_latexmk,nav,snm}
|
||||
|
||||
cleanall: clean
|
||||
@rm -f $(NAME).pdf
|
||||
|
||||
print-%: ; @echo $* = $($*)
|
||||
Reference in New Issue
Block a user