more Makefile scaffolding, automate building a website

this isn't the final form of how the web build has to work, by any
means, but I can test with it

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2025-04-04 08:46:17 -05:00
parent 61af604f75
commit a681bd6d54
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
2 changed files with 17 additions and 5 deletions

View File

@ -1,12 +1,22 @@
TMPDIR := ./_tmp
CSRD := ./srd/Cypher-System-Reference-Document-2024-09-26.docx
MD_CSRD := $(TMPDIR)/csrd.md
CCSRD := $(TMPDIR)/ccsrd.md
TMPDIR := ./_tmp
CSRD := ./srd/Cypher-System-Reference-Document-2024-09-26.docx
MD_CSRD := $(TMPDIR)/csrd.md
CCSRD := $(TMPDIR)/ccsrd.md
WEBDIR := ./incorporealcms-instance
PAGESDIR := $(TMPDIR)/$(WEBDIR)/pages
all: $(MD_CSRD)
all: base-patches
base-patches: $(MD_CSRD)
cp -a $(MD_CSRD) $(CCSRD)
find patches/base -type f -name *.patch -print0 | xargs -0 -n 1 patch $(CCSRD)
web: base-patches
cp -a $(WEBDIR) $(TMPDIR)/
mkdir -p $(PAGESDIR)
cp $(CCSRD) $(PAGESDIR)/index.md
incorporealcms-build $(TMPDIR)/$(WEBDIR) /var/www/localhost/incorporealcms-testing/root
$(MD_CSRD): | $(TMPDIR)
pandoc -f docx -t gfm $(CSRD) -o $(MD_CSRD) --columns 120

View File

@ -0,0 +1,2 @@
{
}