mirror of
https://github.com/pinout-xyz/Pinout.xyz.git
synced 2024-11-08 17:47:04 +00:00
31 lines
443 B
Makefile
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)
|