aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
l---------[-rw-r--r--]Mathe/9/2/quizes/funktionen_erkennen/Makefile18
-rw-r--r--templates/quiz/Makefile4
2 files changed, 3 insertions, 19 deletions
diff --git a/Mathe/9/2/quizes/funktionen_erkennen/Makefile b/Mathe/9/2/quizes/funktionen_erkennen/Makefile
index 1d424dec..9624d00f 100644..120000
--- a/Mathe/9/2/quizes/funktionen_erkennen/Makefile
+++ b/Mathe/9/2/quizes/funktionen_erkennen/Makefile
@@ -1,17 +1 @@
-QUESTIONS:=$(wildcard *.tex)
-PDFS:=$(QUESTIONS:.tex=.pdf)
-PNGS:=$(QUESTIONS:.tex=.png)
-JPGS:=$(QUESTIONS:.tex=.jpg)
-
-.PHONY: all
-all: $(PDFS) $(PNGS) $(JPGS)
-
-%.jpg: %.pdf
- convert -density 600 -quality 100 $< -flatten -sharpen 0x1.0 $@
-
-%.png: %.pdf
- convert -density 600 -quality 100 $< -flatten -sharpen 0x1.0 $@
-
-COMMON_MK = $(shell bash -c 'upfind() { [[ -f "$$1" ]] && printf "$$1" || ([ "$$(realpath $$(dirname "$$1"))" == "/" ] || upfind "../$$1") }; upfind common.mk')
-include $(COMMON_MK)
-
+../../../../../templates/quiz/Makefile \ No newline at end of file
diff --git a/templates/quiz/Makefile b/templates/quiz/Makefile
index 1d424dec..202b8500 100644
--- a/templates/quiz/Makefile
+++ b/templates/quiz/Makefile
@@ -7,10 +7,10 @@ JPGS:=$(QUESTIONS:.tex=.jpg)
all: $(PDFS) $(PNGS) $(JPGS)
%.jpg: %.pdf
- convert -density 600 -quality 100 $< -flatten -sharpen 0x1.0 $@
+ magick -density 600 -quality 100 $< -flatten -sharpen 0x1.0 $@
%.png: %.pdf
- convert -density 600 -quality 100 $< -flatten -sharpen 0x1.0 $@
+ magick -density 600 -quality 100 $< -flatten -sharpen 0x1.0 $@
COMMON_MK = $(shell bash -c 'upfind() { [[ -f "$$1" ]] && printf "$$1" || ([ "$$(realpath $$(dirname "$$1"))" == "/" ] || upfind "../$$1") }; upfind common.mk')
include $(COMMON_MK)