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://anggtwu.net/20⟦yy⟧.⟦s⟧-⟦MM⟧/Makefile.html
#   http://anggtwu.net/20⟦yy⟧.⟦s⟧-⟦MM⟧/Makefile
#          (find-angg "20⟦yy⟧.⟦s⟧-⟦MM⟧/Makefile")
# Author: Eduardo Ochs <eduardoochs@gmail.com>
#
# (defun m2 () (interactive) (find-anggfile "20⟦yy⟧.⟦s⟧-C2/Makefile"))
# (defun m3 () (interactive) (find-anggfile "20⟦yy⟧.⟦s⟧-C3/Makefile"))
# (find-copy-quadros-links)
#
# (defun e () (interactive) (find-angg "20⟦yy⟧.⟦s⟧-⟦MM⟧/Makefile"))
# (defun o () (interactive) (find-angg "20⟦yyo⟧.⟦so⟧-⟦MM⟧/Makefile"))
# (defun eo () (interactive) (find-2a '(e) '(o)))
#
# Skel: (find-semestre-MM-quadros-links "⟦yy⟧" "⟦s⟧" "⟦MM⟧"  "⟦yyo⟧" "⟦so⟧")
# Template: (find-angg "MAKE/2023.1-MM-template")

# (find-angg "2017.2-GA/Makefile")
# (find-angg "20⟦yyo⟧.⟦so⟧-⟦MM⟧/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  = 20⟦yy⟧.⟦s⟧-⟦MM⟧
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)
	echo djvm -create $(THIS).djvu 20⟦yy⟧????_⟦MM⟧???_?.djvu
	djvm      -create $(THIS).djvu 20⟦yy⟧????_⟦MM⟧???_?.djvu

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

# (find-fline "~/20⟦yyo⟧.⟦so⟧-quadros/")
# (find-fline "~/20⟦yy⟧.⟦s⟧-quadros/")

# See: (find-eepitch-intro "3.3. `eepitch-preprocess-line'")
# (setq eepitch-preprocess-regexp "^")
# (setq eepitch-preprocess-regexp "^#T ?")
# (find-fline "~/20⟦yy⟧.⟦s⟧-quadros/")
#
#T * (eepitch-shell)
#T * (eepitch-kill)
#T * (eepitch-shell)
#T f () { cp -av ~/20⟦yy⟧.⟦s⟧-quadros/$1.jpg $2.jpg
#T        chmod 644 $2.jpg
#T        make $2.png $2.djvu
#T        make $2.pdf
#T      }
#T f 20230000_000000-⟦MM⟧   20230000-⟦MM⟧-1
#T
#T cd ~/20⟦yy⟧.⟦s⟧-⟦MM⟧/
#T 'ls' 20⟦yy⟧*.jpg | sort | sed -e 's/jpg/djvu/g' | tee /tmp/odjvus
#T djvm -create ⟦MM⟧-quadros.djvu $(cat /tmp/odjvus)
#T make         ⟦MM⟧-quadros.pdf
#T # (find-pdf-page "~/20⟦yy⟧.⟦s⟧-⟦MM⟧/⟦MM⟧-quadros.pdf" 1)
#T # (find-fline "~/TH/20⟦yy⟧.⟦s⟧-⟦MM⟧.blogme")
#T
#T rsync -avvz -e ssh \
#T   *.jpg *.png ⟦MM⟧-quadros.pdf \
#T     edrx@linode:slow_html/20⟦yy⟧.⟦s⟧-⟦MM⟧
#T rsync -avvz -e ssh \
#T   *.jpg *.png ⟦MM⟧-quadros.pdf \
#T     edrx@linode:public_html/20⟦yy⟧.⟦s⟧-⟦MM⟧
#T 
#T # (find-linodesfile "20⟦yy⟧.⟦s⟧-⟦MM⟧/")
#T # (find-linodepfile "20⟦yy⟧.⟦s⟧-⟦MM⟧/")
#T http://anggtwu.net/20⟦yy⟧.⟦s⟧-⟦MM⟧/⟦MM⟧-quadros.pdf

#T * (eepitch-linode)
#T * (eepitch-kill)
#T * (eepitch-linode)
#T cd ~/public_html/
#T makepageindexhtmls
#T
#T # http://anggtwu.net/20⟦yy⟧.⟦s⟧-⟦MM⟧/
#T # http://anggtwu.net/20⟦yy⟧.⟦s⟧-⟦MM⟧/⟦MM⟧-quadros.pdf


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