-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (46 loc) · 3.13 KB
/
Makefile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
## manuscript : Generates the manuscript pdf file
manuscript: manuscript/manuscript.pdf
## word : Generates the manuscript docx file
word: manuscript/manuscript.docx
manuscript/manuscript.pdf: manuscript/manuscript.Rmd manuscript/bibliography.bib manuscript/ama.csl manuscript/preamble.tex code/02_explore.R data/mechanical_load_data.rda figures/fig1.png figures/fig2.png figures/figS1.png figures/figS2.png figures/figS3.png figures/figS4.png figures/figS5.png tables/tab1.R tables/tab2.R code/funs.R output/prediction_models.rda
Rscript -e 'rmarkdown::render("$<")'
manuscript/manuscript.docx: manuscript/manuscript.Rmd manuscript/bibliography.bib manuscript/ama.csl manuscript/preamble.tex manuscript/style_reference.docx code/02_explore.R data/mechanical_load_data.rda figures/fig1.png figures/fig2.png figures/figS1.png figures/figS2.png figures/figS3.png figures/figS4.png figures/figS5.png tables/tab1.R tables/tab2.R code/funs.R output/prediction_models.rda
Rscript -e 'rmarkdown::render("$<", output_format = "word_document")'
## figures : Generates all figures
figures: figures/fig1.tiff figures/fig2.tiff figures/figS2.tiff figures/figS3.tiff figures/figS4.tiff figures/figS5.tiff figures/fig1.png figures/fig2.png figures/figS2.png figures/figS3.png figures/figS4.png figures/figS5.png
figures/fig1.tiff figures/fig1.png: data/mechanical_load_data.rda figures/fig1.R
R CMD BATCH figures/fig1.R
figures/fig2.tiff figures/fig2.png: data/mechanical_load_data.rda output/loocv_data.rda figures/fig2.R
R CMD BATCH figures/fig2.R
figures/figS2.tiff figures/figS2.png: data/mechanical_load_data.rda figures/figS2.R
R CMD BATCH figures/figS2.R
figures/figS3.tiff figures/figS3.png: data/mechanical_load_data.rda figures/figS3.R
R CMD BATCH figures/figS3.R
figures/figS4.tiff figures/figS4.png: output/loocv_data.rda figures/figS4.R
R CMD BATCH figures/figS4.R
figures/figS5.tiff figures/figS5.png: output/loocv_data.rda figures/figS5.R
R CMD BATCH figures/figS5.R
## output : Generates all output
output: output/loocv_data.rda output/prediction_models.rda output/sub_analyses_accuracy.rda
output/loocv_data.rda: data/mechanical_load_data.rda code/03_predict.R
R CMD BATCH code/03_predict.R
output/prediction_models.rda: data/mechanical_load_data.rda code/03_predict.R
R CMD BATCH code/03_predict.R
output/sub_analyses_accuracy.rda: data/mechanical_load_data.rda output/loocv_data.rda
R CMD BATCH code/04_sub_analyses.R
## data : Processes raw data
data: data/mechanical_load_data.rda
data/mechanical_load_data.rda: data/anthropometric_data.csv data/GRF_ACC_data_all.xlsx data/max_rates_IMU_running.csv code/01_tidy_data.R
R CMD BATCH code/01_tidy_data.R
## install : Installs all necessary packages
install:
Rscript -e 'renv::restore()'
## clean : Removes auto-generated files
clean:
\rm -f *.Rout .Rdata manuscript/*.log manuscript/manuscript.tex
## cleanall : Removes auto-generated files, including processed data, figures and the manuscript pdf
cleanall:
\rm -f *.Rout .Rdata manuscript/*.log manuscript/manuscript.tex data/*.rda output/* figures/*.tiff manuscript/manuscript.pdf
.PHONY : help
help : Makefile
@sed -n 's/^##//p' $<