pinout-xyz_Pinout.xyz/Makefile
2023-10-13 15:29:18 +01:00

31 lines
443 B
Makefile

LANG ?= en
LANG := $(subst -, ,$(LANG))
LANG := $(subst _, ,$(LANG))
LANG := $(firstword $(LANG))
.PHONY: resources
all: html resources
deps:
python3 -m pip install -r requirements.txt
css:
scss resources/pinout.scss > resources/pinout.scss.css
html:
./generate-html.py $(LANG)
resources:
cp -r resources output/$(LANG)/
devel: css all resources
./serve.py ${LANG}
clean:
rm -rf output/$(LANG)/*
serve: all
./serve.py $(LANG)