make show of all markdown files

This commit is contained in:
Malin Freeborn 2024-06-09 15:57:49 +02:00
parent 63e1353e5f
commit fa18e9d0d0
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
2 changed files with 12 additions and 1 deletions

View File

@ -2,6 +2,7 @@ help:
@echo "Options:"
@echo "\tmake pdf"
@echo "\tmake creature"
@echo "\tmake show"
.PHONY: pdf
pdf: overview.pdf
@ -31,6 +32,16 @@ overview.tex: overview.md | rubbish/
rubbish/overview.pdf: overview.tex
pdflatex -output-directory rubbish/ overview.tex
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)
@lowdown -sTterm $(COLLECTION) | bat
.PHONY: clean
clean:
$(RM) -r rubbish overview.tex
$(RM) -r rubbish overview.tex $(COLLECTION)