diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-11-04 14:53:42 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-11-04 14:53:42 +0100 |
| commit | c58d6ae5252f9abcf0dfbe54a0db0946ccd44287 (patch) | |
| tree | 245296dcb48907164fdfd3b554f6ce4f4b64ff66 /templates/quiz/Makefile | |
| parent | b22d2f8dd7eda90e4a7b19307f8eea7bd7f03197 (diff) | |
| download | unterricht-c58d6ae5252f9abcf0dfbe54a0db0946ccd44287.tar.gz unterricht-c58d6ae5252f9abcf0dfbe54a0db0946ccd44287.zip | |
add quiz template
Diffstat (limited to 'templates/quiz/Makefile')
| -rw-r--r-- | templates/quiz/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/quiz/Makefile b/templates/quiz/Makefile new file mode 100644 index 00000000..1d424dec --- /dev/null +++ b/templates/quiz/Makefile @@ -0,0 +1,17 @@ +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) + |
