aboutsummaryrefslogtreecommitdiff
path: root/vignettes/GNUMakefile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-06-22 06:09:00 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2015-06-22 20:31:22 +0200
commit01d9de6ff165c64ffc4366f2eeb3d2649b5c74c0 (patch)
tree87d586590a1b94e5915cdd51394caef7eaf51ed1 /vignettes/GNUMakefile
parent5bd8716b2e4c880b798d1e5e231d49816bbdebd1 (diff)
Version bump, correct benchmark in vignette/compiled_models
Reorganisation of the vignette generation in the Makefile. Improved YAML header in the R markdown vignettes. Rebuilt vignettes with the package installed.
Diffstat (limited to 'vignettes/GNUMakefile')
-rw-r--r--vignettes/GNUMakefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/vignettes/GNUMakefile b/vignettes/GNUMakefile
new file mode 100644
index 00000000..de037089
--- /dev/null
+++ b/vignettes/GNUMakefile
@@ -0,0 +1,18 @@
+RBIN ?= $(shell dirname "`which R`")
+
+all: vignettes
+
+%.pdf: header.tex references.bib %.Rnw
+ "$(RBIN)/Rscript" -e "tools::buildVignette(file = '$*.Rnw')"
+
+%.html: mkin_vignettes.css %.Rmd
+ "$(RBIN)/Rscript" -e "tools::buildVignette(file = '$*.Rmd')"
+
+vignettes: mkin.pdf FOCUS_D.html FOCUS_L.html FOCUS_Z.pdf compiled_models.html
+
+clean:
+ $(RM) *.aux *.bbl *.blg *.fdb_latexmk *.fls *.log *.out *.toc
+ $(RM) *.R *.md
+ $(RM) mkin.tex FOCUS_Z.tex
+ $(RM) -r *_cache *_files
+ $(RM) -r figure cache

Contact - Imprint