-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
25 lines (20 loc) · 740 Bytes
/
makefile
File metadata and controls
25 lines (20 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
RSCRIPT = Rscript
PLOT_SETTINGS = scripts/common/setup-ggplot-theme.R
TEX_FILES = $(wildcard tex-input/*.tex) \
$(wildcard tex-input/*/*.tex) \
$(wildcard tex-input/*/*/*.tex)
# useful compound make components
PLOTS = plots
RDS = rds
SCRIPTS = scripts
# if you wildcard the all-target, then nothing will happen if the target doesn't
# exist (no target). hard code the target.
# CHANGE THIS:
BASENAME = report-template
WRITEUP = $(BASENAME).pdf
all : $(WRITEUP)
clean :
trash $(BASENAME).aux $(BASENAME).out $(BASENAME).pdf $(BASENAME).tex
# knitr is becoming more picky about encoding, specify UTF-8 input
$(WRITEUP) : $(wildcard *.rmd) $(TEX_FILES)
$(RSCRIPT) -e "rmarkdown::render(input = Sys.glob('*.rmd'), encoding = 'UTF-8')"