diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-04-04 09:49:22 -0300 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:14 +0200 |
| commit | bc7bc188007be1f0bdf8a6f9de9a8bd8303c57c0 (patch) | |
| tree | 2964bc8ece6e8f00f94aa7f1a447220e0541c498 | |
| parent | f21c865318b36ee78e6b4c16aacf4e818989f38f (diff) | |
| download | muhqs-game-bc7bc188007be1f0bdf8a6f9de9a8bd8303c57c0.tar.gz muhqs-game-bc7bc188007be1f0bdf8a6f9de9a8bd8303c57c0.zip | |
use bash and fix erroneous expansion of escape sequences
| -rw-r--r-- | latex/Makefile | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/latex/Makefile b/latex/Makefile index c93324b1..484aee02 100644 --- a/latex/Makefile +++ b/latex/Makefile @@ -78,20 +78,20 @@ define generateSetTexRules $(SETS_TEX_DIR)/$(1).tex: $(wildcard $(CARDS_TEX_DIR)/$(1)/*.tex) $(MAKEFILE_LIST) @echo "generating $(1) tex" @if test \( ! \( -d $$(@D) \) \) ;then mkdir -p $$(@D);fi - $(VERBOSE) echo "\documentclass[a4paper,landscape]{article}" > $$@ - $(VERBOSE) echo "\usepackage[margin=6mm,top=5mm]{geometry}" >> $$@ - $(VERBOSE) echo "\input{libs.tex}" >> $$@ - $(VERBOSE) echo "\input{colors.tex}" >> $$@ - $(VERBOSE) echo "\input{tikzcards.tex}" >> $$@ - $(VERBOSE) echo "\usepackage{standalone}" >> $$@ - $(VERBOSE) echo "\begin{document}" >> $$@ - $(VERBOSE) echo "\begin{center}" >> $$@ - $(VERBOSE) echo "\pagestyle{empty}" >> $$@ + $(VERBOSE) echo '\documentclass[a4paper,landscape]{article}' > $$@ + $(VERBOSE) echo '\usepackage[margin=6mm,top=5mm]{geometry}' >> $$@ + $(VERBOSE) echo '\input{libs.tex}' >> $$@ + $(VERBOSE) echo '\input{colors.tex}' >> $$@ + $(VERBOSE) echo '\input{tikzcards.tex}' >> $$@ + $(VERBOSE) echo '\usepackage{standalone}' >> $$@ + $(VERBOSE) echo '\\begin{document}' >> $$@ + $(VERBOSE) echo '\\begin{center}' >> $$@ + $(VERBOSE) echo '\pagestyle{empty}' >> $$@ $(VERBOSE)for card in $(wildcard $(CARDS_TEX_DIR)/$(1)/*.tex); do \ rel_card=$$$${card#"$(LATEX_ROOT)/"}; \ echo "\includestandalone{$$$${rel_card%.tex}}" >> $$@; done - $(VERBOSE) echo "\end{center}" >> $$@ - $(VERBOSE) echo "\end{document}" >> $$@ + $(VERBOSE) echo '\end{center}' >> $$@ + $(VERBOSE) echo '\end{document}' >> $$@ endef # Generate set tex rules |
