alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

commit 2722547cd6850b8aa94e7d3dffec60902c65329b (patch)
parent 134357a6f4b264f2191b1d9a169de5c741d825a7
Author: Alex Karle <alex@alexkarle.com>
Date:   Wed,  6 Jan 2021 20:36:39 -0500

make: Automate discovery of HTML to build

Keeping up with the HTML list in the Makefile isn't super sustainable. I
had originally used this because I didn't know a portable way to use a
shell expanded variable. However, it seems != works on both OpenBSD and
with GNU Make, so it seems favorable.

Diffstat:
MMakefile | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/Makefile b/Makefile @@ -2,16 +2,7 @@ # targets: # build [default] -- generates HTML in current dir # clean -- deletes said HTML -HTML := \ - index.html \ - intro.html \ - blog.html \ - a-new-hope.html \ - domain-names.html \ - BLM.html \ - self-hosted.html \ - on-writing.html \ - my-old-man.html +HTML != echo index.html *.[1-9] | sed 's/\.[1-9]/.html/g' # Running with HIDE="" shows the full build command instead # of the abbreviated version (@ suppresses the command in make)