aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-09-27 13:53:01 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-09-27 14:46:03 +0200
commit822b7c1a3c5f5b11b5a43a6c9b054e2b4f8893ea (patch)
tree0d08c0f9b227e510e4b96c5567f40954eed12627
parent5ad773fdb34c114bfeec8506da91819a6e31cce3 (diff)
downloadunterricht-822b7c1a3c5f5b11b5a43a6c9b054e2b4f8893ea.tar.gz
unterricht-822b7c1a3c5f5b11b5a43a6c9b054e2b4f8893ea.zip
build teacher versions using the new LESSON_LEHRERVERSION env var
-rw-r--r--common.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 1e281e6d..d8a6685e 100644
--- a/common.mk
+++ b/common.mk
@@ -48,7 +48,12 @@ slides.pptx: slides.pdf $(MAKEFILE_LIST)
.PRECIOUS: .build/%.pdf
.build/%.pdf: %.tex .FORCE $(MAKEFILE_LIST)
@mkdir -p .build
- $(VERBOSE)rubber $(RUBBER_OPTS) $<
+ $(VERBOSE)rubber $(RUBBER_OPTS) --jobname $(@:.build/%.pdf=%) $<
+
+.PRECIOUS: .build/lehrer_%.pdf
+.build/lehrer_%.pdf: %.tex .FORCE $(MAKEFILE_LIST)
+ @mkdir -p .build
+ $(VERBOSE)LESSON_LEHRERVERSION=true rubber $(RUBBER_OPTS) --jobname $(@:.build/%.pdf=%) $<
%.pdf: .build/%.pdf
@echo "built $@"