From fa18e9d0d0c0194e8633ba3d0f2cff04766922ae Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 9 Jun 2024 15:57:49 +0200 Subject: [PATCH] make show of all markdown files --- Makefile | 13 ++++++++++++- Mechanics/{stats.md => Stats.md} | 0 2 files changed, 12 insertions(+), 1 deletion(-) rename Mechanics/{stats.md => Stats.md} (100%) diff --git a/Makefile b/Makefile index 2d3c971..3adf43a 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/Mechanics/stats.md b/Mechanics/Stats.md similarity index 100% rename from Mechanics/stats.md rename to Mechanics/Stats.md