Skip to content
Snippets Groups Projects
Commit 3ce65d7c authored by Lorenzo Ferron's avatar Lorenzo Ferron
Browse files

Refactor Makefile

parent 97bbcd7c
No related branches found
No related tags found
No related merge requests found
......@@ -12,25 +12,20 @@ WORKING_DIR = src/
all: readable printable abstract
printable: --$(MAIN_PRINTABLE).pdf
readable: --$(MAIN_READABLE).pdf
abstract: --$(MAIN_ABSTRACT).pdf
printable:
cd $(WORKING_DIR) && \
rm -vf $(MASTER).pdf && \
$(latexmk) -interaction=nonstopmode -shell-escape -synctex=1 -lualatex -usepretex='\newif\ifprint \printtrue\newif\ifabstract \abstracttrue' $(MASTER_TEX) && \
cp $(MASTER).pdf ../out/$(MAIN_PRINTABLE).pdf
--$(MAIN_READABLE).pdf:
readable:
cd $(WORKING_DIR) && \
rm -vf $(MASTER).pdf && \
$(latexmk) -interaction=nonstopmode -shell-escape -synctex=1 -lualatex -usepretex='\newif\ifprint \printfalse\newif\ifabstract \abstracttrue' $(MASTER_TEX) && \
cp $(MASTER).pdf ../out/$(MAIN_READABLE).pdf
--$(MAIN_PRINTABLE).pdf:
cd $(WORKING_DIR) && \
$(latexmk) -interaction=nonstopmode -shell-escape -synctex=1 -lualatex -usepretex='\newif\ifprint \printtrue\newif\ifabstract \abstracttrue' $(MASTER_TEX) && \
cp $(MASTER).pdf ../out/$(MAIN_PRINTABLE).pdf
--$(MAIN_ABSTRACT).pdf:
abstract:
cd $(WORKING_DIR) && \
rm -vf $(MASTER).pdf && \
$(latexmk) -interaction=nonstopmode -shell-escape -synctex=1 -lualatex -usepretex='\newif\ifprint \printfalse\newif\ifabstract \abstractfalse' $(MASTER_TEX) && \
cp $(MASTER).pdf ../out/$(MAIN_ABSTRACT).pdf
.PHONY: all readable printable abstract
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment