2024-06-04 23:21:02 +00:00
|
|
|
help:
|
|
|
|
@echo "Options:"
|
|
|
|
@echo "\tmake pdf"
|
|
|
|
@echo "\tmake creature"
|
2024-06-09 13:57:49 +00:00
|
|
|
@echo "\tmake show"
|
2024-07-02 12:10:42 +00:00
|
|
|
@echo "\tmake check (to check your dependencies)"
|
|
|
|
@echo "\tsudo make install-godot"
|
|
|
|
@echo "\tsudo make uninstall-godot"
|
2024-06-04 23:21:02 +00:00
|
|
|
|
2024-05-28 22:41:32 +00:00
|
|
|
.PHONY: pdf
|
|
|
|
pdf: overview.pdf
|
|
|
|
|
2024-07-02 12:10:42 +00:00
|
|
|
.PHONY: check
|
|
|
|
check:
|
|
|
|
@which lowdown >/dev/null || echo 'install lowdown (optional)'
|
|
|
|
@which git-lfs >/dev/null || echo 'install git-lfs'
|
|
|
|
@which pdflatex >/dev/null || echo 'install pdflatex (optional)'
|
|
|
|
@which less >/dev/null || echo 'install less (you absolute cave-man)'
|
|
|
|
@godot --version | grep -q '3.2' || echo 'install godot version 3.2.3 using "make install-godot"'
|
|
|
|
|
2024-05-28 22:41:32 +00:00
|
|
|
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
|
|
|
|
|
2024-06-09 13:57:49 +00:00
|
|
|
COLLECTION := /tmp/collection.md
|
|
|
|
.PHONY: show
|
|
|
|
show: $(COLLECTION)
|
|
|
|
$(COLLECTION): overview.md World
|
|
|
|
@./parse.sh overview.md > $(COLLECTION)
|
|
|
|
@./parse.sh World/Players_are_Entropy.md >> $(COLLECTION)
|
|
|
|
@./parse.sh Mechanics/Minds.md >> $(COLLECTION)
|
|
|
|
@./parse.sh Mechanics/Stats.md >> $(COLLECTION)
|
2024-06-09 14:11:07 +00:00
|
|
|
@lowdown -sTterm $(COLLECTION) | less -R
|
2024-06-09 13:57:49 +00:00
|
|
|
|
2024-07-02 12:10:42 +00:00
|
|
|
bins/:
|
|
|
|
@mkdir -p bins
|
|
|
|
.checksum.txt:
|
|
|
|
curl https://downloads.tuxfamily.org/godotengine/3.2.3/SHA512-SUMS.txt | grep x11.64 > .checksum.txt
|
|
|
|
Godot_v3.2.3-stable_x11.64: .checksum.txt bins/
|
|
|
|
wget https://downloads.tuxfamily.org/godotengine/3.2.3/Godot_v3.2.3-stable_x11.64.zip
|
|
|
|
sha512sum -c .checksum.txt
|
|
|
|
mv Godot_v3.2.3-stable_x11.64.zip bins/
|
|
|
|
cd bins/ && unzip Godot_v3.2.3-stable_x11.64.zip
|
|
|
|
install-godot: Godot_v3.2.3-stable_x11.64
|
|
|
|
install -m 755 bins/Godot_v3.2.3-stable_x11.64 /usr/local/bin/godot
|
2024-06-09 15:43:52 +00:00
|
|
|
|
|
|
|
.PHONY: uninstall-godot
|
|
|
|
uninstall-godot:
|
|
|
|
rm /usr/local/bin/godot
|
|
|
|
|
2024-05-28 22:41:32 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2024-07-02 12:10:42 +00:00
|
|
|
$(RM) -r rubbish overview.tex $(COLLECTION) \
|
|
|
|
.checksum.txt \
|
|
|
|
bins
|