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/2023.1-GA/Makefile.html # http://anggtwu.net/2023.1-GA/Makefile # (find-angg "2023.1-GA/Makefile") # Author: Eduardo Ochs <eduardoochs@gmail.com> # # (defun m2 () (interactive) (find-anggfile "2023.1-C2/Makefile")) # (defun m4 () (interactive) (find-anggfile "2023.1-C4/Makefile")) # (defun m7 () (interactive) (find-anggfile "2023.1-C7/Makefile")) # (find-copy-quadros-links) # # (defun e () (interactive) (find-angg "2023.1-GA/Makefile")) # (defun o () (interactive) (find-angg "2022.2-GA/Makefile")) # (defun eo () (interactive) (find-2a '(e) '(o))) # # Skel: (find-semestre-MM-quadros-links "23" "1" "GA" "22" "2") # (find-angg "2017.2-GA/Makefile") # (find-angg "2022.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 = 2023.1-GA 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 2023????_GA???_?.djvu djvm -create $(THIS).djvu 2023????_GA???_?.djvu pdf: $(THIS).pdf %.pdf: %.djvu ddjvu -format=pdf $< $@ # (find-fline "~/2022.2-quadros/") # (find-fline "~/2023.1-quadros/") # See: (find-eepitch-intro "3.3. `eepitch-preprocess-line'") # (setq eepitch-preprocess-regexp "^") # (setq eepitch-preprocess-regexp "^#T ?") # (find-fline "~/2023.1-quadros/") # #T * (eepitch-shell) #T * (eepitch-kill) #T * (eepitch-shell) #T f () { cp -av ~/2023.1-quadros/$1.jpg $2.jpg #T make $2.png $2.djvu #T make $2.pdf #T } #T f 20230601_160409-GA-1 20230601-GA-1 #T f 20230601_160417-GA-2 20230601-GA-2 #T #T f 20230615_150832-GA-1 20230615-GA-1 #T f 20230615_150842-GA-2 20230615-GA-2 #T f 20230615_155532-GA-3 20230615-GA-3 #T f 20230615_155545-GA-4 20230615-GA-4 #T f 20230615_160542-GA-5 20230615-GA-5 #T #T cd ~/2023.1-GA/ #T 'ls' 2023*.jpg | sort | sed -e 's/jpg/djvu/g' | tee /tmp/odjvus #T djvm -create GA-quadros.djvu $(cat /tmp/odjvus) #T make GA-quadros.pdf #T # (find-pdf-page "~/2023.1-GA/GA-quadros.pdf" 3) #T #T rsync -avvz -e ssh \ #T *.jpg *.png GA-quadros.pdf \ #T edrx@linode:slow_html/2023.1-GA #T rsync -avvz -e ssh \ #T *.jpg *.png GA-quadros.pdf \ #T edrx@linode:public_html/2023.1-GA #T #T # (find-linodesfile "2023.1-GA/") #T # (find-linodepfile "2023.1-GA/") #T http://anggtwu.net/2023.1-GA/GA-quadros.pdf #T * (eepitch-linode) #T * (eepitch-kill) #T * (eepitch-linode) #T cd ~/public_html/ #T makepageindexhtmls #T #T # http://anggtwu.net/2023.1-GA/ #T # http://anggtwu.net/2023.1-GA/GA-quadros.pdf # Local Variables: # coding: utf-8-unix # End: