diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-01-02 11:02:43 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-01-02 11:08:43 +0100 |
| commit | 083e76d71126fd7a32359675a63366c10f76ace1 (patch) | |
| tree | c1164d1041c81c2f2f2526b8a10d92d1602bb54e /test_quiz/Makefile | |
| parent | 19f7f50dd3863881591e639ec724457b4c6fbc08 (diff) | |
| download | quiz-083e76d71126fd7a32359675a63366c10f76ace1.tar.gz quiz-083e76d71126fd7a32359675a63366c10f76ace1.zip | |
add test quiz setup
Diffstat (limited to 'test_quiz/Makefile')
| -rw-r--r-- | test_quiz/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test_quiz/Makefile b/test_quiz/Makefile new file mode 100644 index 0000000..2b47722 --- /dev/null +++ b/test_quiz/Makefile @@ -0,0 +1,21 @@ +QUESTIONS:=$(wildcard *.tex) +PDFS:=$(QUESTIONS:.tex=.pdf) +PNGS:=$(QUESTIONS:.tex=.png) +JPGS:=$(QUESTIONS:.tex=.jpg) + +.PHONY: all +all: $(PDFS) $(PNGS) $(JPGS) + +.PHONY: clean +clean: + rm -f $(PDFS) $(PNGS) $(JPGS) + +%.pdf: %.tex + rubber --pdf $< && \ + rubber --clean $< + +%.jpg: %.pdf + convert -density 600 -quality 100 $< -flatten -sharpen 0x1.0 $@ + +%.png: %.pdf + convert -density 600 -quality 100 $< -flatten -sharpen 0x1.0 $@ |
