diff options
Diffstat (limited to 'Mathe/23_24/06/26/7A/quiz/Makefile')
| -rw-r--r-- | Mathe/23_24/06/26/7A/quiz/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Mathe/23_24/06/26/7A/quiz/Makefile b/Mathe/23_24/06/26/7A/quiz/Makefile new file mode 100644 index 00000000..1d424dec --- /dev/null +++ b/Mathe/23_24/06/26/7A/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) + |
