Commit 5ea5a00d authored by monofon's avatar monofon

Use cp on Windows (if this is even used on Windows)

parent bfe49cbe
......@@ -28,8 +28,6 @@ Decker uses a few external tools that need to be installed on the system:
- [*ssh*](https://www.openssh.com) for publishing slide decks and resources
- [*rsync*](http://formulae.brew.sh/repos/Homebrew/homebrew-core/formula/rsync)
for publishing slide decks and resources
- [*unzip*](http://formulae.brew.sh/repos/Homebrew/homebrew-core/formula/unzip)
to extract resources from the decker executable
- [*LaTeX* with pdflatex](https://www.latex-project.org) to generate LaTeX in
PDF-files and embedded Tikz figures
- [*Graphviz*](http://graphviz.org) to generate graphs using `dot`
......@@ -45,7 +43,7 @@ Decker uses a few external tools that need to be installed on the system:
Use [Homebrew](https://brew.sh) to install most of them.
``` {.sh}
brew install rsync unzip graphviz gnuplot pdf2svg yarn
brew install rsync graphviz gnuplot pdf2svg yarn coreutils
```
For the rest follow instructions on their respective webites.
......
......@@ -6,6 +6,12 @@ SHELL := $(shell which bash)
support := ../resource/support/vendor
third := $(shell realpath .)
ifeq ($(OS),Windows_NT)
dup = cp -r
else
dup = ln -sF
endif
all: jquery chart.js mathjax reveal.js bootstrap piklor.js whiteboard fontawesome reveal.js-menu
jquery: jquery/dist/jquery.min.js
......@@ -13,40 +19,40 @@ jquery: jquery/dist/jquery.min.js
chart.js: Chart.js/dist/Chart.min.js
@cp Chart.js/dist/Chart.min.js $(support)/Chart.js
@ln -sf $(third)/reveal.js-plugins/chart/csv2chart.js $(support)/csv2chart.js
@$(dup) $(third)/reveal.js-plugins/chart/csv2chart.js $(support)/csv2chart.js
mathjax:
@mkdir -p $(support)/mathjax/{jax/input,jax/output}
@for i in MathJax.js config jax/input/TeX jax/output/SVG jax/element extensions; do \
ln -sF $(third)/MathJax/$$i $(support)/mathjax/$$i; \
$(dup) $(third)/MathJax/$$i $(support)/mathjax/$$i; \
done
reveal.js:
@mkdir -p $(support)/reveal/plugin
@for i in js css lib plugin/math plugin/zoom-js plugin/notes; do \
ln -sF $(third)/reveal.js/$$i $(support)/reveal/$$i; \
$(dup) $(third)/reveal.js/$$i $(support)/reveal/$$i; \
done
reveal.js-menu:
@mkdir -p $(support)/reveal.js-menu
@for i in menu.css menu.js; do \
ln -sF $(third)/reveal.js-menu/$$i $(support)/reveal.js-menu/$$i; \
$(dup) $(third)/reveal.js-menu/$$i $(support)/reveal.js-menu/$$i; \
done
bootstrap:
@mkdir -p $(support)/bootstrap
@ln -sF $(third)/bootstrap/dist/css $(support)/bootstrap/css
@$(dup) $(third)/bootstrap/dist/css $(support)/bootstrap/css
piklor.js:
@ln -sf $(third)/piklor.js/src/piklor.min.js $(support)/piklor.js
@$(dup) $(third)/piklor.js/src/piklor.min.js $(support)/piklor.js
whiteboard:
@ln -sF $(third)/mb-reveal-plugins/whiteboard $(support)/whiteboard
@$(dup) $(third)/mb-reveal-plugins/whiteboard $(support)/whiteboard
fontawesome:
@mkdir -p $(support)/fontawesome
@for i in js css webfonts svgs sprites; do \
ln -sF $(third)/Font-Awesome/js-packages/@fortawesome/fontawesome-free/$$i $(support)/fontawesome/$$i; \
$(dup) $(third)/Font-Awesome/js-packages/@fortawesome/fontawesome-free/$$i $(support)/fontawesome/$$i; \
done
prepare: clean
......
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