commit 6f19196ee4252d0be9b67989f7e773471afbc405 (patch)
parent 61ac25702a4b6ee331b4743bb18379ee45ba9b62
Author: Alex Karle <alex@alexkarle.com>
Date: Wed, 30 Dec 2020 16:18:34 -0500
make: Add index.html symlink to build step
I'm working on a git hook to checkout into the /var/www area and
build via 'make'. The symlink is necessary so that visitors hit
intro.7 immediately.
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,4 +1,3 @@
-/build/
-
# generated html from man pages
*.[1-9].html
+index.html
diff --git a/Makefile b/Makefile
@@ -1,6 +1,7 @@
# sub-Makefile so that mandoc -Oman can find the Xr references
HIDE = @
HTML := \
+ index.html \
intro.7.html \
blog.7.html \
a-new-hope.7.html \
@@ -16,6 +17,9 @@ build: $(HTML)
clean:
rm -f $(HTML)
+index.html:
+ ln -sf intro.7.html $@
+
.SUFFIXES: .7 .7.html
.7.7.html:
@echo "mandoc $<"