forked from datacarpentry/shell-genomics
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
executable file
·32 lines (21 loc) · 874 Bytes
/
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
all: pages handout-script.R
skeleton-%.R: %.Rmd
Rscript -e "knitr::purl('$<', output='$@', documentation=0L)"
%.html: %.Rmd
Rscript -e "rmarkdown::render('$<', output_format=rmarkdown::html_document(toc=TRUE, highlight='tango'))"
index.html: index.md
pandoc -o $@ $^
motivation.html: motivation.md
pandoc -o $@ $^
handout-script.R: skeleton-00-before-we-start.R skeleton-01-intro-to-R.R skeleton-02-starting-with-data.R skeleton-03-data-frames.R skeleton-04-dplyr.R
for f in $^; do cat $$f; echo "\n"; done > $@
make clean-skeleton
pages: index.html motivation.html 00-before-we-start.html 01-intro-to-R.html 02-starting-with-data.html 03-data-frames.html 04-dplyr.html 05-visualisation-ggplot2.html 06-r-and-sql.html
make clean-md
clean-skeleton:
-rm skeleton-*-*.R
clean-md:
-rm *-*.md
clean-html:
-rm *.html
clean: clean-skeleton clean-html clean-md