summaryrefslogtreecommitdiff
path: root/revealjs/Makefile
blob: 5274fe8adaec26e994666ac934ff8f2da7bfae45 (plain)
  1. pandoc_sources := $(wildcard *.md)
  2. presentations = $(pandoc_sources:%.md=%.html)
  3. basedir = ../..
  4. core_code_files := reset.css reveal.css theme/black.css reveal.js
  5. plugin_code_files := notes/notes.js search/search.js zoom/zoom.js
  6. all_core_code_files = $(core_code_files:%=$(basedir)/revealjs/dist/%)
  7. all_plugin_code_files = $(plugin_code_files:%=$(basedir)/revealjs/plugin/%)
  8. all: $(presentations)
  9. $(presentations): %.html : %.md $(basedir)/.gitignore \
  10. $(all_core_code_files) $(all_plugin_code_files)
  11. # mkdir -p $(dir $@)
  12. pandoc -f commonmark_x -t revealjs --slide-level=2 --standalone -V revealjs-url=$(basedir)/revealjs --resource-path=.. -o "$@" -- "$<"
  13. $(all_core_code_files): $(basedir)/revealjs/dist/%:
  14. wget -P revealjs -x -nH --cut-dirs=2 --directory-prefix=$(basedir)/revealjs/dist https://unpkg.com/reveal.js@^4/dist/"$*"
  15. $(all_plugin_code_files): $(basedir)/revealjs/plugin/%:
  16. wget -P revealjs -x -nH --cut-dirs=1 --directory-prefix=$(basedir)/revealjs https://unpkg.com/reveal.js@^4/plugin/"$*"