Skip to content

Commit

Permalink
Simplified build system
Browse files Browse the repository at this point in the history
  • Loading branch information
anjos committed Aug 11, 2022
1 parent 62f841f commit 7a6ccf9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
18 changes: 9 additions & 9 deletions .latexmkrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ $pdflatex = 'lualatex -synctex=1 --shell-escape %O %S';
$pdf_previewer = 'open -a Skim';

# extensions we know we will generate and then need to be cleaned
push @generated_exts, "run.xml";
push @generated_exts, "synctex.gz";
push @generated_exts, "synctex.gz(busy)";
push @generated_exts, "bbl";
push @generated_exts, "bcf";
push @generated_exts, "snm";
push @generated_exts, "nav";
push @generated_exts, "bdb_latexmk";
push @generated_exts, 'run.xml';
push @generated_exts, 'synctex.gz';
push @generated_exts, 'synctex.gz(busy)';
push @generated_exts, 'bbl';
push @generated_exts, 'bcf';
push @generated_exts, 'snm';
push @generated_exts, 'nav';
push @generated_exts, 'bdb_latexmk';

# extensions we need to force latexmk to clean with -C
$clean_ext = 'synctex.gz(busy) bbl';
$clean_ext .= '%R.synctex(busy) %R.synctex.gz(busy) %R.bbl';
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Created by Andre Anjos <[email protected]>
# Wed 16 Jan 2013 18:00:08 CET

MAINFILE=cv.tex snsf-cv.tex snsf-research-output.tex snsf-achievements.tex euraxess-cv.tex fapesp-cv.tex snsf-sinergia-cv.tex snsf-sinergia-achievements.tex biosketch.tex
PDFFILE=$(MAINFILE:%.tex=%.pdf)
.PHONY : FORCE_MAKE filtered.bib clean

all: $(PDFFILE)
all:
latexmk

%.pdf: %.tex FORCE_MAKE
latexmk $<
Expand All @@ -17,6 +16,6 @@ snsf-research-output.pdf: snsf-research-output.tex filtered.bib FORCE_MAKE
latexmk $<

clean:
latexmk -C $(MAINFILE)
latexmk -C
@rm -vf $(PDFFILE)
@rm -vf $(shell find . -name "*~") filtered.bib

0 comments on commit 7a6ccf9

Please sign in to comment.