27 lines
622 B
Makefile
27 lines
622 B
Makefile
SHELL := /bin/bash
|
|
SRC := src
|
|
BUILD := build
|
|
|
|
.PHONY: all build serve pdf clean
|
|
|
|
# Alvo padrao: gera o deck autocontido em build/
|
|
all: build
|
|
|
|
# Gera build/index.html com CSS e JS embutidos e imagens em build/assets/
|
|
build:
|
|
@python3 build.py
|
|
@echo "Pronto: abra build/index.html no navegador (setas do teclado para navegar)."
|
|
|
|
# Gera build/robo-movel-etapa2.pdf com uma pagina 1920x1080 por slide
|
|
pdf: build
|
|
@node scripts/make_pdf.cjs
|
|
|
|
# Serve o build em http://localhost:8000
|
|
serve: build
|
|
@cd $(BUILD) && python3 -m http.server 8000
|
|
|
|
# Remove os artefatos de build
|
|
clean:
|
|
@rm -rf $(BUILD)
|
|
@echo "build/ removido."
|