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:
parent
61af604f75
commit
a681bd6d54
20
Makefile
20
Makefile
@ -1,12 +1,22 @@
|
|||||||
TMPDIR := ./_tmp
|
TMPDIR := ./_tmp
|
||||||
CSRD := ./srd/Cypher-System-Reference-Document-2024-09-26.docx
|
CSRD := ./srd/Cypher-System-Reference-Document-2024-09-26.docx
|
||||||
MD_CSRD := $(TMPDIR)/csrd.md
|
MD_CSRD := $(TMPDIR)/csrd.md
|
||||||
CCSRD := $(TMPDIR)/ccsrd.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)
|
cp -a $(MD_CSRD) $(CCSRD)
|
||||||
find patches/base -type f -name *.patch -print0 | xargs -0 -n 1 patch $(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)
|
$(MD_CSRD): | $(TMPDIR)
|
||||||
pandoc -f docx -t gfm $(CSRD) -o $(MD_CSRD) --columns 120
|
pandoc -f docx -t gfm $(CSRD) -o $(MD_CSRD) --columns 120
|
||||||
|
|
||||||
|
2
incorporealcms-instance/config.json
Normal file
2
incorporealcms-instance/config.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user