summaryrefslogtreecommitdiff
path: root/src/rules.in (unfollow)
Commit message (Collapse)AuthorFilesLines
2026-05-26rules: Print site.mk content instead of its pathHEADmainEuAndreh1-5/+7
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>
2026-05-26Extract canonical site rules into share/mkwb/site.mkEuAndreh1-0/+6
Sites used to copy-paste ~340 lines of suffix rules, derived-asset lists, and recipes (global.conf assembly, sitemap, security.txt, gpg-derived fingerprint/expiry, check-unit-*) into every Makefile. Move all of it into share/mkwb/site.mk, shipped at install time. Add src/rules.in -> `mkwb rules`: prints the absolute path of the shipped site.mk so a site's mkdeps.sh can append it as the last `include` line of deps.mk. The site's own Makefile then needs only an `all:` anchor (to keep it as the default target ahead of deps.mk's first rule) and `include deps.mk`. Also adds tests/resources/{site,expected}/ and tests/integration.sh exercising mkwb htmlbody / links / snippets / sortdata against golden files, with sortdata covering >1 collection and >1 entry per collection to verify per-collection chronological ordering. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>