Skip to content

Instantly share code, notes, and snippets.

@wush978
Created June 4, 2013 02:27
Show Gist options
  • Save wush978/5703158 to your computer and use it in GitHub Desktop.
Save wush978/5703158 to your computer and use it in GitHub Desktop.
RMD_FILES = $(wildcard *.Rmd)
HTML_FILES = $(RMD_FILES:.Rmd=.html)
all: $(HTML_FILES)
(cd img && make)
%.html: %.md
pandoc -s -S -i -t slidy --mathjax -V slidy_url=slidy --base-header-level=3 $(@:.html=.md) -o $@
%.md: %.Rmd
Rscript knit.R $< $@
Rscript ../gist/jekyll/jekyll.R $@
clean:
-rm *.html *.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment