diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-09-14 11:46:14 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-09-14 11:46:14 +0200 |
| commit | d26af8ffcda74c5d171b45b1e16463a772f90946 (patch) | |
| tree | 0907aea43327bebed5947e05faefc666200c8a72 /Mathe/9 | |
| parent | b69d53f1724cff148a83bfd4f51b783ff440c237 (diff) | |
| download | unterricht-d26af8ffcda74c5d171b45b1e16463a772f90946.tar.gz unterricht-d26af8ffcda74c5d171b45b1e16463a772f90946.zip | |
add makefile for questions
Diffstat (limited to 'Mathe/9')
| -rw-r--r-- | Mathe/9/1/01_Quadratwurzeln/questions/.gitignore | 2 | ||||
| -rw-r--r-- | Mathe/9/1/01_Quadratwurzeln/questions/Makefile | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/Mathe/9/1/01_Quadratwurzeln/questions/.gitignore b/Mathe/9/1/01_Quadratwurzeln/questions/.gitignore index a1363379..a6971ac0 100644 --- a/Mathe/9/1/01_Quadratwurzeln/questions/.gitignore +++ b/Mathe/9/1/01_Quadratwurzeln/questions/.gitignore @@ -1 +1,3 @@ *.pdf +*.png +*.jpg diff --git a/Mathe/9/1/01_Quadratwurzeln/questions/Makefile b/Mathe/9/1/01_Quadratwurzeln/questions/Makefile new file mode 100644 index 00000000..1d424dec --- /dev/null +++ b/Mathe/9/1/01_Quadratwurzeln/questions/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) + |
