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

24 lines
697 B
Makefile

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
cp -rv src/assets build
clean:
test -f build/index.html && rm build/index.html || true
test -f build/slides.pdf && rm build/slides.pdf || true
test -f build/slides.pptx && rm build/slides.pptx || true
test -d build/assets && rm -fr build/assets || true
build: build-html build-pdf build-pptx
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
serve:
marp --allow-local-files -w -s ./src