Page MenuHomeSealhub

Makefile
No OneTemporary

Makefile

default: all
in_file := prezentacja-60min.md
reveal_dir := ./reveal.js
reveal_template := ./template.html
out_dir := ./public
out_html := $(out_dir)/index.html
style_file := ./style.scss
style_out := $(out_dir)/style.css
to_watch := .
$(style_out): $(style_file)
sass --scss $(style_file) $(style_out)
public/source-sans:
wget https://fontlibrary.org/assets/downloads/source-sans-pro/d288e5a9d9111d4041f365469aa2ca97/source-sans-pro.zip
unzip source-sans-pro.zip
mkdir -p public/source-sans
mv source-sans-pro*/* public/source-sans/
rm -rf source-sans-pro*
all: $(style_out) public/source-sans
pandoc --section-divs -t revealjs -s --standalone \
--template $(reveal_template) \
-V reveal_dir=$(reveal_dir) \
$(in_file) -o $(out_html)
watch:
make all && xdg-open $(out_html); while true; do inotifywait -e modify $(to_watch) ; make all; notify-send "build finished" -t 1000; done;

File Metadata

Mime Type
text/x-makefile
Expires
Sat, Nov 23, 06:59 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547907
Default Alt Text
Makefile (903 B)

Event Timeline