Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
# (find-angg "2017.2-C2/Makefile")
# (find-angg "SCANS/Makefile")
# (find-node "(make)Text Functions")

THIS  = 2017.2-C2
PNGS  = $(patsubst %.jpg,%.png,$(wildcard *.jpg))
DJVUS = $(patsubst %.png,%.djvu,$(wildcard *.png))

# (find-angg "bin/whiteboard")
# (find-es "gimp" "whiteboard")
pngs_:
	echo $(PNGS)
pngs: $(PNGS)
%.png: %.jpg
	whiteboard $< $@

%.pgm: %.png
	convert $< $@
%.pbm: %.pgm
	mkbitmap -x -f 50 -t 0.4 $< -o $@
%.djvu: %.pbm
	cjb2 -lossy $< $@

djvus_:
	echo $(DJVUS)
djvus: $(DJVUS)

djvu: $(THIS).djvu
$(THIS).djvu: $(DJVUS)
	djvm -create $(THIS).djvu $(DJVUS)

pdf: $(THIS).pdf
%.pdf: %.djvu
	ddjvu -format=pdf $< $@