-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
24 lines (19 loc) · 953 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SOURCES = \
src/ausruestung.tex src/common.lua src/common.tex src/dsa.cls \
src/frontseite.lua src/frontseite.tex src/heldendokument.tex \
src/kampfbogen.lua src/kampfbogen.tex \
src/liturgien.tex src/misc-macros.tex \
src/talentbogen.lua src/talentbogen.tex src/values.lua \
src/zauberdokument.lua src/zauberdokument.tex \
src/zauberliste.lua src/zauberliste.tex
docker: dsa41held-webui.tar
doc: docs/format.html
dsa41held-webui.tar: build.dockerfile heldensoftware-meta.xml import.xsl flake.nix flake.lock $(shell find templates src webui img -type file)
docker build -f build.dockerfile -t dsa41held-build .
docker run --rm dsa41held-build:latest > $@
docker rmi $(docker images --filter=reference='dsa41held-build' --format "{{.ID}}")
docs/format.html: src/schemadef.lua src/schema.lua src/tools.lua flake.nix flake.lock
nix build .#dsa41held-doc
cp result/format.html docs/format.html
chmod u+w docs/format.html
.PHONY: doc docker