journee-repars-avec-ton-claude/slides/Makefile

24 lines
697 B
Makefile
Raw Permalink Normal View History

2021-11-28 22:24:08 +01:00
build-pdf:
marp src/index.md --allow-local-files -o build/slides.pdf
build-pptx:
marp src/index.md --allow-local-files -o build/slides.pptx
build-html:
marp src/index.md --allow-local-files -o build/index.html
2021-11-28 23:06:17 +01:00
cp -rv src/assets build
2021-11-28 22:24:08 +01:00
clean:
2021-11-28 22:29:01 +01:00
test -f build/index.html && rm build/index.html || true
2021-11-28 22:24:08 +01:00
test -f build/slides.pdf && rm build/slides.pdf || true
test -f build/slides.pptx && rm build/slides.pptx || true
2021-11-28 23:06:17 +01:00
test -d build/assets && rm -fr build/assets || true
2021-11-28 22:24:08 +01:00
2021-11-28 22:29:01 +01:00
build: build-html build-pdf build-pptx
2021-11-28 23:06:17 +01:00
test -f build/html.tar.gz && rm build/html.tar.gz || true
tar cvf build/html.tar build/index.html build/assets
gzip -9 build/html.tar
2021-11-28 22:24:08 +01:00
serve:
marp --allow-local-files -w -s ./src