Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
#!/usr/bin/env -S make -f
# This file:
#   http://angg.twu.net/2022.2-C2/Makefile.html
#   http://angg.twu.net/2022.2-C2/Makefile
#           (find-angg "2022.2-C2/Makefile")
# Author: Eduardo Ochs <eduardoochs@gmail.com>
# See:
#   http://angg.twu.net/2022.2-C2/C2-quadros.pdf
#   http://angg.twu.net/2022.2-C2/
#
# (defun e () (interactive) (find-angg "2022.2-C2/Makefile"))

# (find-angg "2017.2-GA/Makefile")
# (find-angg "SCANS/Makefile")
# (find-node "(make)Text Functions")
# (find-node "(make)Automatic Variables")
# (find-node "(make)Automatic Variables" "$@" "target of the rule")
# (find-node "(make)Automatic Variables" "$*" "stem")

THIS  = 2022.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)
	# echo djvm -create $(THIS).djvu 2022????_C2?.djvu
	# djvm      -create $(THIS).djvu 2022????_C2?.djvu
	echo djvm -create $(THIS).djvu 2022????_C2???_?.djvu
	djvm      -create $(THIS).djvu 2022????_C2???_?.djvu

2022.2-C2-peq.djvu: $(DJVUS)
	echo djvm -create $@ 2022????_C2-C1_?.djvu
	djvm      -create $@ 2022????_C2-C1_?.djvu
2022.2-C2-gde.djvu: $(DJVUS)
	echo djvm -create $@ 2022????_C2-E1_?.djvu
	djvm      -create $@ 2022????_C2-E1_?.djvu

pdf: $(THIS).pdf
peq.pdf: 2022.2-C2-peq.pdf
gde.pdf: 2022.2-C2-gde.pdf

pdfs: pdf peq.pdf gde.pdf

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

# (find-fline "~/2022.2-quadros/")


# See: (find-eepitch-intro "3.3. `eepitch-preprocess-line'")
# (setq eepitch-preprocess-regexp "^")
# (setq eepitch-preprocess-regexp "^#T ?")
# (find-fline "~/2022.2-quadros/")
#
#T * (eepitch-shell)
#T * (eepitch-kill)
#T * (eepitch-shell)
#T * (eepitch-password-prompt 'no)
#T f () { cp -av ~/2022.2-quadros/$1.jpg $2.jpg
#T        make $2.png $2.djvu
#T        make $2.pdf
#T      }
#T f 20220824_174029-C2   20220824-C2-1
#T f 20220825_155644-C2   20220825-C2-1
#T f 20220831_165505-C2-1 20220831-C2-1
#T f 20220831_173111-C2-2 20220831-C2-2
#T f 20220831_174859-C2-3 20220831-C2-3
#T f 20220901_151638-C2   20220901-C2-1
#T f 20220901_155829-C2   20220901-C2-2
#T f 20220908_150054-C2-1 20220908-C2-1
#T f 20220908_150063-C2-2 20220908-C2-2
#T f 20220908_150065-C2-3 20220908-C2-3
#T f 20220908_150067-C2-4 20220908-C2-4
#T f 20220908_150069-C2-5 20220908-C2-5
#T f 20220908_150071-C2-6 20220908-C2-6
#T f 20220908_150073-C2-7 20220908-C2-7
#T f 20220908_150079-C2-8 20220908-C2-8
#T f 20220908_160329-C2-9 20220908-C2-9
#T f 20220921_171635-C2-1 20220921-C2-1
#T f 20220921_174338-C2-2 20220921-C2-2
#T f 20220922_154051-C2-1 20220922-C2-1
#T f 20220922_155929-C2-2 20220922-C2-2
#T f 20220926_160759-C2   20220926-C2-1
#T f 20220928_172352-C2-1 20220928-C2-1
#T f 20220928_174801-C2-2 20220928-C2-2
#T f 20220929_155615-C2-1 20220929-C2-1
#T f 20220929_155630-C2-2 20220929-C2-2
#T f 20221004_180540-C2   20221004-C2-1
#T f 20221005_174909-C2   20221005-C2-1
#T f 20221006_153756-C2-1 20221006-C2-1
#T f 20221006_153808-C2-2 20221006-C2-2
#T f 20221006_160257-C2-3 20221006-C2-3
#T f 20221013_160015-C2-1 20221013-C2-1
#T f 20221013_160033-C2-2 20221013-C2-2
#T f 20221026_174443-C2-1 20221026-C2-1
#T f 20221026_174459-C2-2 20221026-C2-2
#T f 20221027_155652-C2   20221027-C2-1
#T f 20221103_151943-C2-1 20221103-C2-1
#T f 20221103_154954-C2-2 20221103-C2-2
#T f 20221103_160002-C2-3 20221103-C2-3
#T f 20221109_174439-C2   20221109-C2-1
#T f 20221110_154840-C2   20221110-C2-1
#T f 20221116_164633-C2-1 20221116-C2-1
#T f 20221116_175110-C2-2 20221116-C2-2
#T f 20221117_150051-C2-1 20221117-C2-1
#T f 20221117_160352-C2-2 20221117-C2-2
#T f 20221123_172034-C2-1 20221123-C2-1
#T f 20221123_174458-C2-2 20221123-C2-2
#T f 20221129_184948-C2   20221129-C2-1
#T f 20221129_184948-C2   20221129-C2-1
#T f 20221201_150702_C2   20221201_C2-1
#T f 20221201_150712_C2   20221201_C2-2
#T f 20221201_160724_C2   20221201_C2-3
#T f 20221206_172329_C2   20221206_C2-1
#T f 20221206_180113_C2   20221206_C2-2
#T
#T f 20221214_175306-C2   20221214-C2-1
#T f 20221215_165901-C2   20221215-C2-1
#T
#T cd ~/2022.2-C2/
#T # 'ls' 2022*tarde*.jpg | sort | sed -e 's/jpg/djvu/g' | tee /tmp/odjvus_t
#T # 'ls' 2022*manha*.jpg | sort | sed -e 's/jpg/djvu/g' | tee /tmp/odjvus_m
#T   'ls' 2022*.jpg       | sort | sed -e 's/jpg/djvu/g' | tee /tmp/odjvus
#T # djvm -create C2-quadros-tarde.djvu $(cat /tmp/odjvus_t)
#T # djvm -create C2-quadros-manha.djvu $(cat /tmp/odjvus_m)
#T   djvm -create C2-quadros.djvu       $(cat /tmp/odjvus)
#T # make         C2-quadros-tarde.pdf
#T # make         C2-quadros-manha.pdf
#T   make         C2-quadros.pdf
#T # (find-pdf-page "~/2022.2-C2/C2-quadros-tarde.pdf" 19)
#T # (find-pdf-page "~/2022.2-C2/C2-quadros-manha.pdf" 15)
#T # (find-pdf-page "~/2022.2-C2/C2-quadros.pdf"       40)
#T
#T (find-es "cvs" "rsync_angg_slow_html")
#T ~/EXPECT/autopasswd \
#T   rsync -avvz -e ssh \
#T     *.jpg *.png C2-quadros.pdf \
#T       edrx@angg.twu.net:slow_html/2022.2-C2
#T ~/EXPECT/autopasswd \
#T   rsync -avvz -e ssh \
#T     *.jpg *.png C2-quadros.pdf \
#T       edrx@angg.twu.net:public_html/2022.2-C2
#T 
#T rsync -avvz -e ssh \
#T   *.jpg *.png C2-quadros.pdf \
#T     edrx@linode:slow_html/2022.2-C2
#T rsync -avvz -e ssh \
#T   *.jpg *.png C2-quadros.pdf \
#T     edrx@linode:public_html/2022.2-C2
#T 
#T * (eepitch-Twu)
#T * (eepitch-kill)
#T * (eepitch-Twu)
#T cd ~/public_html/
#T makepageindexhtmls
#T
#T # http://angg.twu.net/2022.2-C2/
#T # http://angg.twu.net/2022.2-C2/C2-quadros.pdf
#T # http://angg.twu.net/2022.2-C2/C2-quadros-manha.pdf

# Local Variables:
# coding:  utf-8-unix
# End: