summaryrefslogtreecommitdiff
path: root/src/rules.in
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2026-05-26 09:45:56 -0300
committerEuAndreh <eu@euandre.org>2026-05-26 09:45:56 -0300
commit587dd617a763ad3b54f6e415ac8c9fc0ae31c447 (patch)
tree8e20ea0b5fc5d7ea47166fb14d327950388b977c /src/rules.in
parentExtract canonical site rules into share/mkwb/site.mk (diff)
downloadmkwb-main.tar.gz
mkwb-main.tar.xz
rules: Print site.mk content instead of its pathHEADmain
mkdeps.sh can now inline the canonical rules directly at the end of the generated deps.mk -- no make-time `include` of an external file, no GNU $(shell) gymnastics in the site Makefile. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'src/rules.in')
-rwxr-xr-xsrc/rules.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/rules.in b/src/rules.in
index b998091..78fa73f 100755
--- a/src/rules.in
+++ b/src/rules.in
@@ -1,6 +1,8 @@
#!/bin/sh
-# Print the absolute path of the canonical Makefile rules shipped
-# alongside mkwb. Sites consume it with:
-# include $(shell mkwb rules)
-# in their top-level Makefile.
-echo '@SHAREDIR@/mkwb/site.mk'
+# Print the contents of the canonical Makefile rules shipped
+# alongside mkwb. Site builds embed the output directly in their
+# generated deps.mk so no `include` directive (or shell-out) is
+# needed at make time:
+# # at the end of mkdeps.sh:
+# mkwb rules
+exec cat '@SHAREDIR@/mkwb/site.mk'