Skip to content

Commit

Permalink
updates to makefile. moving static dependencies to tex file only.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickreich committed May 20, 2018
1 parent 495a666 commit 87b9b14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions writing/comparison/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ view: pdf
pdf: $(TEXFILE).pdf

## knit the manuscript tex --> pdf
$(TEXFILE).pdf: $(TEXFILE).tex
## dependencies here are static files, manually updated, not used in reproducible analyses
$(TEXFILE).pdf: $(TEXFILE).tex ../flusightnetwork.bib static-figures/model-table.tex static-figures/timezero-sketch.pdf
pdflatex $(TEXFILE)
bibtex $(TEXFILE)
pdflatex $(TEXFILE)
pdflatex $(TEXFILE)

## knit Rnw --> tex
$(TEXFILE).tex: $(TEXFILE).Rnw data/all-target-bounds.csv ../../scores/target-multivals.csv ../../scores/scores.csv data/delay-model-coefs.rds ../flusightnetwork.bib static-figures/model-table.tex static-figures/timezero-sketch.pdf
$(TEXFILE).tex: $(TEXFILE).Rnw data/all-target-bounds.csv ../../scores/target-multivals.csv ../../scores/scores.csv data/delay-model-coefs.rds
Rscript \
-e "library(knitr)" \
-e "knitr::knit('$<','$@')"
Expand Down

0 comments on commit 87b9b14

Please sign in to comment.