2024-06-04 23:21:02 +00:00
|
|
|
help:
|
|
|
|
@echo "Options:"
|
|
|
|
@echo "\tmake pdf"
|
|
|
|
@echo "\tmake creature"
|
|
|
|
|
2024-05-28 22:41:32 +00:00
|
|
|
.PHONY: pdf
|
|
|
|
pdf: overview.pdf
|
|
|
|
|
|
|
|
rubbish/:
|
|
|
|
mkdir rubbish
|
|
|
|
|
2024-06-04 23:21:02 +00:00
|
|
|
RANDOM != date +%s
|
|
|
|
TMP := /tmp/$(RANDOM).md
|
|
|
|
NAME := $(shell head -1 $(TMP) 2>/dev/null| tail -c+3)
|
|
|
|
|
|
|
|
.PHONY: creature
|
|
|
|
creature: stats/$(NAME).md
|
|
|
|
$(TMP):
|
|
|
|
cp stats/template.md $(TMP)
|
|
|
|
$$EDITOR $(TMP)
|
|
|
|
stats/$(NAME).md: $(TMP)
|
|
|
|
mv $(TMP) stats/$(NAME).md
|
|
|
|
|
2024-05-28 22:41:32 +00:00
|
|
|
overview.pdf:| rubbish/overview.pdf
|
|
|
|
ln rubbish/overview.pdf overview.pdf
|
|
|
|
rubbish/overview.pdf: overview.tex
|
|
|
|
|
|
|
|
overview.tex: overview.md | rubbish/
|
2024-06-09 13:19:12 +00:00
|
|
|
lowdown -stlatex -m shiftheadinglevelby=1 overview.md > overview.tex
|
2024-05-28 22:41:32 +00:00
|
|
|
|
|
|
|
rubbish/overview.pdf: overview.tex
|
|
|
|
pdflatex -output-directory rubbish/ overview.tex
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(RM) -r rubbish overview.tex
|