From 065186538afd4eb3471edbd137afc47f517f7f77 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 5 Jun 2024 01:21:02 +0200 Subject: [PATCH] add make creature command --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile b/Makefile index 17874fe..bdcda7d 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,26 @@ +help: + @echo "Options:" + @echo "\tmake pdf" + @echo "\tmake creature" + .PHONY: pdf pdf: overview.pdf rubbish/: mkdir rubbish +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 + overview.pdf:| rubbish/overview.pdf ln rubbish/overview.pdf overview.pdf rubbish/overview.pdf: overview.tex