make
”, Section 5.1 of Kieran Healy, The Plain Person’s Guide to Plain Text Social Sciencemake
”make
How to install make
:
xcode-select --install
choco install make
(Important! You must use tabs in Makefiles, not spaces)
# Read as "mypaper.pdf depends on mypaper.md and figures/fig1.jpg"
mypaper.pdf: mypaper.md figures/fig1.jpg
pandoc mypaper.md --citeproc -o mypaper.pdf
# Read as "figures/fig1.jpg depends on analysis/figs.R"
figures/fig1.jpg: analysis/figs.R
Rscript analysis/fig.R
rrtools