From f7985df6d51056de4dcd4c4e5ad3231eb52e1d2a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 17 Jun 2023 12:10:54 -0400 Subject: [PATCH] update make file to accomodate new form of game and make file names sort a bit better in the releases folder --- Makefile | 49 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 0e99b5c..7e51f95 100644 --- a/Makefile +++ b/Makefile @@ -1,25 +1,54 @@ -all: full_game +# Targets +######### +all: full condensed -full_game: release/mindfulness_the_game_letter.pdf \ - release/mindfulness_the_game_a4.pdf \ - release/mindfulness_the_game.org +full: release/_mindfulness_the_game_letter.pdf \ + release/_mindfulness_the_game_a4.pdf \ + release/_mindfulness_the_game.org -release/mindfulness_the_game_letter.pdf : mindfulness_the_game.md +condensed: release/condensed_mindfulness_the_game_letter.pdf \ + release/condensed_mindfulness_the_game_a4.pdf \ + release/condensed_mindfulness_the_game.org + +# Full Game +########### +release/_mindfulness_the_game_letter.pdf : mindfulness_the_game.md pandoc --pdf-engine=xelatex \ -V papersize:letter \ - -o release/mindfulness_the_game_letter.pdf \ + -o release/_mindfulness_the_game_letter.pdf \ mindfulness_the_game.md -release/mindfulness_the_game_a4.pdf : mindfulness_the_game.md +release/_mindfulness_the_game_a4.pdf : mindfulness_the_game.md pandoc --pdf-engine=xelatex \ -V papersize:a4 \ - -o release/mindfulness_the_game_a4.pdf \ + -o release/_mindfulness_the_game_a4.pdf \ mindfulness_the_game.md -release/mindfulness_the_game.org : mindfulness_the_game.md +release/_mindfulness_the_game.org : mindfulness_the_game.md pandoc \ - -o release/mindfulness_the_game.org \ + -o release/_mindfulness_the_game.org \ mindfulness_the_game.md +# Condensed +########### +release/condensed_mindfulness_the_game_letter.pdf : condensed_mindfulness_the_game.md + pandoc --pdf-engine=xelatex \ + -V papersize:letter \ + -o release/condensed_mindfulness_the_game_letter.pdf \ + condensed_mindfulness_the_game.md + +release/condensed_mindfulness_the_game_a4.pdf : condensed_mindfulness_the_game.md + pandoc --pdf-engine=xelatex \ + -V papersize:a4 \ + -o release/condensed_mindfulness_the_game_a4.pdf \ + condensed_mindfulness_the_game.md + +release/condensed_mindfulness_the_game.org : condensed_mindfulness_the_game.md + pandoc \ + -o release/condensed_mindfulness_the_game.org \ + condensed_mindfulness_the_game.md + +# Misc +###### clean: rm -r release/*