diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2017-02-11 23:32:00 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2017-02-11 23:32:00 +0100 |
| commit | 39d40e287e835619bd753132b77be188b9d18b18 (patch) | |
| tree | 7c9551f05d6caf7828a1e330bdf4f2c1734e48a4 /Makefile | |
| download | rcheatsheet-39d40e287e835619bd753132b77be188b9d18b18.tar.gz rcheatsheet-39d40e287e835619bd753132b77be188b9d18b18.zip | |
add tooling for R Cheatsheet
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e895bd0 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CSS=pandoc.css + +.PHONY: html, pdf, clean, all + +R_Cheatsheet.html: R_Cheatsheet.md + cat $< | ./highlight_code.py | pandoc -f markdown_github --css $(CSS) --highlight-style kate -o $@ -; + sed -i -f remove_table_width.sed $@ + +R_Cheatsheet.pdf: R_Cheatsheet.html + pandoc -f html -o $@ + +html: R_Cheatsheet.html + +pdf: R_Cheatsheet.pdf + +clean: + rm *.pdf *.html + +all: pdf html |
