# Targets
#########
all: full condensed

full: release/_mindfulness_the_game_letter.pdf \
      release/_mindfulness_the_game_a4.pdf \
      release/_mindfulness_the_game.org

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 \
	       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 \
	       mindfulness_the_game.md
 
release/_mindfulness_the_game.org : mindfulness_the_game.md
	pandoc \
	       -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/*