commit 5b59f965d639cd7c1bfee42b060e619e2cf0e677
parent da73041c7065712f166f456c473adb0d3246b959
Author: Kyle Milz <krwmilz@gmail.com>
Date: Thu, 22 Jul 2021 04:36:23 +0000
examples: create example Makefile and site.mk
Diffstat:
3 files changed, 46 insertions(+), 24 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,29 +1,6 @@
-#
-# Sample Makefile, edit for your needs.
-# As is it will create `index.html' from source file `index.in'.
-#
-
-# For out of tree builds, which files need copying into the object
-# directory.
-#
-#CP_OBJ += file_a.pdf
-#CP_OBJ += file_b.log
-
-# Files to transform into HTML documents. If omitted the default `index.in'
-# will be used.
-# These MUST HAVE `.in' suffix!
-#
-#SRCS += doc_a.in
-#SRCS += doc_b.in
-
-# What directories to enter after building the current one completes.
-#
-#SUBDIR += dir_a
-#SUBDIR += dir_b
-#SUBDIR += dir_c
-
test:
prove
install:
install -g bin -m 444 bsd.html.mk /usr/share/mk
+ install -g bin -m 444 html.mk /usr/share/man/man5
diff --git a/Makefile.example b/Makefile.example
@@ -0,0 +1,26 @@
+#
+# Sample Makefile, edit for your needs.
+# As is it will create `index.html' from source file `index.in'.
+#
+
+#
+# For out of tree builds, which files need copying into the object
+# directory.
+#
+# CP_OBJ += file_a.pdf
+# CP_OBJ += file_b.log
+
+#
+# Files to transform into HTML documents. If omitted the default `index.in'
+# will be used.
+# These MUST HAVE `.in' suffix!
+#
+# SRCS += doc_a.in
+# SRCS += doc_b.in
+
+#
+# What directories to enter after building the current one completes.
+#
+# SUBDIR += dir_a
+# SUBDIR += dir_b
+# SUBDIR += dir_c
diff --git a/site.mk.example b/site.mk.example
@@ -0,0 +1,19 @@
+#
+# Site specific configuration.
+#
+
+#
+# The next three options are used for out of tree builds and do need to be
+# set for in tree builds.
+#
+# Parent directory of root site directory.
+# BSDSRCDIR ?= /nfs/src
+#
+# The directory to place built site files.
+# BSDOBJDIR ?= /var/www/htdocs
+#
+# This will likely be necessary for other processes to read the created files.
+# WOBJUMASK= 002
+
+# Control cpp(1) behavior, for example adding search directories.
+# CPPFLAGS= -Iinclude