.PHONY: all clean objects = index \ about \ cv \ 404 \ projects \ uses \ tripod \ design-for-exploitation \ this-post-is-lisp \ digital-bum \ hypertext \ making-c-uglier \ making-c-prettier \ this-post-is-cpp \ lambda-0 \ brainfuck-lessons \ lambda-1 \ regex-pronouns \ lisp-design-patterns \ nyxt-to-surf \ lambda-2 \ drafts/ex-cheat-sheet \ drafts/ngai-slides \ tui-not-tui \ falsehoods-html \ oop-c \ stuplime-programming-slides \ guile-optimization \ lambda-3 \ cl-is-lots \ my-generics \ modus-proposal \ gmi-a11y \ c-not-c \ prose-vs-tweet \ the-regex \ scrollbar \ disroot-gotcha \ wisp \ not-ai \ commitmsg \ printf \ procnames \ icu/index \ parameterized \ icu/types-values \ icu/control-structures \ paren-regex \ sed-ed \ lisp-indent \ generated \ this-post-is-ed \ string-regex \ 3mins \ customize-ed html_objects = $(patsubst %, %.html, $(objects)) gemtext_objects = $(patsubst %, %.gmi, $(objects)) text_objects = $(patsubst %, %.txt, $(objects)) man_objects = $(patsubst %, %.7, $(objects)) latex_objects = $(patsubst %, %.tex, $(objects)) pdf_objects = $(patsubst %, %.pdf, $(objects)) clean: -rm $(html_objects) \ $(gemtext_objects) \ $(text_objects) \ $(man_objects) \ $(latex_objects) *.aux *.log *.out \ $(pdf_objects) html: $(html_objects) gemtext: $(gemtext_objects) txt: $(text_objects) man: $(man_objects) latex: $(latex_objects) pdf: latex $(pdf_objects) all: html gemtext txt man latex pdf %.txt: %.h -cp $^ $@ -ed -s $@ < scripts/preprocess.ed -ed -s $@ < scripts/totext.ed %.7: %.h -cp $^ $@ -ed -s $@ < scripts/preprocess.ed -ed -s $@ < scripts/toman.ed %.gmi: %.h -cp $^ $@ -ed -s $@ < scripts/preprocess.ed -ed -s $@ < scripts/togemtext.ed %.html: %.h -cp $^ $@ -ed -s $@ < scripts/preprocess.ed ed -s $@ < scripts/tohtml.ed %.tex: %.h -cp $^ $@ -ed -s $@ < scripts/preprocess.ed -ed -s $@ < scripts/tolatex.ed %.pdf: %.tex -xelatex -interaction=batchmode -output-directory $(shell dirname $@) $^