Эх сурвалжийг харах

makefile: call markdownToHTML directly instead of using knit2html

Fabian Peter Hammerle 8 жил өмнө
parent
commit
21919e4efd
1 өөрчлөгдсөн 4 нэмэгдсэн , 4 устгасан
  1. 4 4
      Makefile

+ 4 - 4
Makefile

@@ -1,4 +1,4 @@
-all: knit.md knit.pandoc.docx knit.pandoc.html knit.html knit.pandoc.pdf
+all: knit.md knit.pandoc.docx knit.pandoc.html knit.markdown.html knit.pandoc.pdf
 
 
 # avoid loading dependencies defined in .RData or ~/.Rprofile
 # avoid loading dependencies defined in .RData or ~/.Rprofile
 # http://kbroman.org/knitr_knutshell/pages/reproducible.html
 # http://kbroman.org/knitr_knutshell/pages/reproducible.html
@@ -13,15 +13,15 @@ knit.pandoc.docx : knit.md
 knit.pandoc.html : knit.md
 knit.pandoc.html : knit.md
 	pandoc --standalone --output=$@ $^
 	pandoc --standalone --output=$@ $^
 
 
-knit.html : main.Rmd
-	R ${R_OPTS} -e "library(knitr); knit2html(input='$<', output='$@')"
+knit.markdown.html : knit.md
+	R ${R_OPTS} -e "library(markdown); markdownToHTML(file='$<', output='$@')"
 
 
 knit.pandoc.pdf : knit.md
 knit.pandoc.pdf : knit.md
 	pandoc --output=$@ $^
 	pandoc --output=$@ $^
 
 
 clean :
 clean :
 	-trash figures
 	-trash figures
-	-trash knit.html
+	-trash knit.markdown.html
 	-trash knit.md
 	-trash knit.md
 	-trash knit.pandoc.docx
 	-trash knit.pandoc.docx
 	-trash knit.pandoc.html
 	-trash knit.pandoc.html