Commit d2038635 authored by Arnaud Legrand's avatar Arnaud Legrand

Update Makefile to ease Laurence's life

parent 32c0f278
all: introduction_to_markdown.html all: introduction_to_markdown.html
NLINES=10000000
%.html: %.org %.html: %.org
emacs -batch $^ --funcall org-html-export-to-html emacs -batch $^ --funcall org-html-export-to-html
sed -i 's/<pre /<pre style="padding-left: 30px; background-color: #f6f8fa;" /g' $@ sed -i 's/<pre /<pre style="padding-left: 30px; background-color: #f6f8fa;" /g' $@
mv $@ $@.bak
cat $@.bak | grep -A $(NLINES) -e '<body>' | grep -B $(NLINES) -e '<div id="postamble" class="status">' | grep -v -e '<body>' -e '<div id="postamble" class="status">' > $@
all: emacs_orgmode.html jupyter.html rstudio.html all: emacs_orgmode.html jupyter.html rstudio.html
NLINES=10000000
%.html: %.org %.html: %.org
emacs -batch $^ --funcall org-html-export-to-html emacs -batch $^ --funcall org-html-export-to-html
sed -i 's/<pre /<pre style="padding-left: 30px; background-color: #f6f8fa;" /g' $@ sed -i 's/<pre /<pre style="padding-left: 30px; background-color: #f6f8fa;" /g' $@
mv $@ $@.bak
cat $@.bak | grep -A $(NLINES) -e '<body>' | grep -B $(NLINES) -e '<div id="postamble" class="status">' | grep -v -e '<body>' -e '<div id="postamble" class="status">' > $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment