From 3dbdc1c69250907025b0a29ca6e136a92ba82b30 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 11 Feb 2017 23:48:23 +0100 Subject: fix Makefile --- Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index e895bd0..19b46d3 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,21 @@ -CSS=pandoc.css +CSS=style.css -.PHONY: html, pdf, clean, all +.PHONY: all, html, pdf, clean -R_Cheatsheet.html: R_Cheatsheet.md +all: pdf html + +rcheatsheet.html: rcheatsheet.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 $@ +rcheatsheet.pdf: rcheatsheet.html + pandoc -f html $< -o $@ -html: R_Cheatsheet.html -pdf: R_Cheatsheet.pdf +html: rcheatsheet.html + +pdf: rcheatsheet.pdf clean: rm *.pdf *.html -all: pdf html -- cgit v1.2.3