From a681bd6d5473e07b378081a07bf1f74228f385c2 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 4 Apr 2025 08:46:17 -0500 Subject: [PATCH] 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 --- Makefile | 20 +++++++++++++++----- incorporealcms-instance/config.json | 2 ++ 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 incorporealcms-instance/config.json diff --git a/Makefile b/Makefile index 48da955..78a3a40 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/incorporealcms-instance/config.json b/incorporealcms-instance/config.json new file mode 100644 index 0000000..2c63c08 --- /dev/null +++ b/incorporealcms-instance/config.json @@ -0,0 +1,2 @@ +{ +}