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.1-C2/Makefile.html
#   http://angg.twu.net/2022.1-C2/Makefile
#           (find-angg "2022.1-C2/Makefile")
# Author: Eduardo Ochs <eduardoochs@gmail.com>
#
# (defun e () (interactive) (find-angg "2022.1-C2/Makefile"))

# (find-angg "2017.1-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.1-quadros/")


# See: (find-eepitch-intro "3.3. `eepitch-preprocess-line'")
# (setq eepitch-preprocess-regexp "^")
# (setq eepitch-preprocess-regexp "^#T ?")
# (find-fline "~/2022.1-quadros/")
#
#T * (eepitch-shell)
#T * (eepitch-kill)
#T * (eepitch-shell)
#T f () { cp -av ~/2022.1-quadros/$1.jpg $2.jpg
#T        make $2.png $2.djvu
#T        make $2.pdf
#T      }
#T f 20220330_172638-C2-tarde 20220330-C2-tarde-1
#T f 20220331_130552-C2-manha 20220331-C2-manha-1
#T f 20220331_162447-C2-tarde 20220331-C2-tarde-1
#T f 20220406_174735-C2-tarde 20220406-C2-tarde-1
#T f 20220407_160605-C2-tarde 20220407-C2-tarde-1
#T f 20220407_130057-C2-manha 20220407-C2-manha-1
#T f 20220408_125839-C2-manha 20220408-C2-manha-1
#T f 20220413_174759-C2-tarde 20220413-C2-tarde-1
#T f 20220414_123232-C2-manha 20220414-C2-manha-1
#T f 20220420_174539-C2-tarde 20220420-C2-tarde-1
#T f 20220427_175005-C2-tarde 20220427-C2-tarde-1
#T f 20220428_131917-C2-manha 20220428-C2-manha-1
#T f 20220428_155331-C2-tarde 20220428-C2-tarde-1
#T f 20220429_130058-C2-manha 20220429-C2-manha-1
#T f 20220504_174806-C2-tarde 20220504-C2-tarde-1
#T f 20220506_130107-C2-manha 20220506-C2-manha-1
#T f 20220505_130625-C2-manha 20220505-C2-manha-1
#T f 20220505_161731-C2-tarde 20220505-C2-tarde-1
#T f 20220511_174726-C2-tarde 20220511-C2-tarde-1
#T f 20220512_131529-C2-manha 20220512-C2-manha-1
#T f 20220512_160154-C2-tarde 20220512-C2-tarde-1
#T f 20220518_174950-C2-tarde 20220518-C2-tarde-1
#T f 20220519_123110-C2-manha 20220519-C2-manha-1
#T f 20220519_160323-C2-tarde 20220519-C2-tarde-1
#T f 20220520_125620-C2-manha 20220520-C2-manha-1
#T f 20220525_174518-C2-tarde 20220525-C2-tarde-1
#T f 20220526_125904-C2-manha 20220526-C2-manha-1
#T f 20220526_162429-C2-tarde 20220526-C2-tarde-1
#T f 20220527_131106-C2-manha 20220527-C2-manha-1
#T f 20220601_174945-C2-tarde 20220601-C2-tarde-1
#T f 20220602_130308-C2-manha 20220602-C2-manha-1
#T f 20220602_160458-C2-tarde 20220602-C2-tarde-1
#T f 20220603_131457-C2-manha 20220603-C2-manha-1
#T f 20220615_171233-C2-tarde 20220615-C2-tarde-1
#T f 20220615_174503-C2-tarde 20220615-C2-tarde-2
#T f 20220622_174518-C2-tarde 20220622-C2-tarde-1
#T f 20220623_130711-C2-manha 20220623-C2-manha-1
#T f 20220623_155229-C2-tarde 20220623-C2-tarde-1
#T f 20220624_125120-C2-manha 20220624-C2-manha-1
#T f 20220629_174529-C2-tarde 20220629-C2-tarde-1
#T f 20220630_131538-C2-manha 20220630-C2-manha-1
#T f 20220630_155900-C2-tarde 20220630-C2-tarde-1
#T f 20220701_132224-C2-manha 20220701-C2-manha-1
#T f 20220706_174949-C2-tarde 20220706-C2-tarde-1
#T f 20220707_130542-C2-manha 20220707-C2-manha-1
#T f 20220707_161114-C2-tarde 20220707-C2-tarde-1
#T f 20220708_131559-C2-manha 20220708-C2-manha-1
#T
#T f 20220713_171632-C2-tarde 20220713-C2-tarde-1
#T f 20220713_175138-C2-tarde 20220713-C2-tarde-2
#T f 20220714_130003-C2-manha 20220714-C2-manha-1
#T f 20220714_165621-C2-tarde 20220714-C2-tarde-1
#T
#T cd ~/2022.1-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.1-C2/C2-quadros-tarde.pdf" 19)
#T # (find-pdf-page "~/2022.1-C2/C2-quadros-manha.pdf" 15)
#T # (find-pdf-page "~/2022.1-C2/C2-quadros.pdf"       15)
#T
#T (find-es "cvs" "rsync_angg_slow_html")
#T ~/EXPECT/autopasswd \
#T   rsync -avvz -e ssh \
#T     *.jpg *.png C2-quadros-tarde.pdf C2-quadros-manha.pdf C2-quadros.pdf \
#T       edrx@angg.twu.net:slow_html/2022.1-C2
#T ~/EXPECT/autopasswd \
#T   rsync -avvz -e ssh \
#T     *.jpg *.png C2-quadros-tarde.pdf C2-quadros-manha.pdf C2-quadros.pdf \
#T       edrx@angg.twu.net:public_html/2022.1-C2
#T
#T (find-es "cvs" "rsync_angg_slow_html")
#T   rsync -avvz -e ssh \
#T     *.jpg *.png C2-quadros-tarde.pdf C2-quadros-manha.pdf C2-quadros.pdf \
#T       edrx@anggtwu.net:slow_html/2022.1-C2
#T   rsync -avvz -e ssh \
#T     *.jpg *.png C2-quadros-tarde.pdf C2-quadros-manha.pdf C2-quadros.pdf \
#T       edrx@anggtwu.net:public_html/2022.1-C2
#T 
#T * (eepitch-Twu)
#T * (eepitch-kill)
#T * (eepitch-Twu)
#T cd ~/public_html/
#T makepageindexhtmls
#T
#T # http://angg.twu.net/2022.1-C2/
#T # http://angg.twu.net/2022.1-C2/C2-quadros.pdf
#T # http://angg.twu.net/2022.1-C2/C2-quadros-tarde.pdf
#T # http://angg.twu.net/2022.1-C2/C2-quadros-manha.pdf

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