From 2722547cd6850b8aa94e7d3dffec60902c65329b Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 6 Jan 2021 20:36:39 -0500 Subject: [PATCH] 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. --- Makefile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Makefile b/Makefile index c473e5f..c604615 100644 --- 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) -- libgit2 1.1.1