Brian S. Stephan 38984146cc
add level 1 and level 2 headers
had to do this one by hand, at least parts of level 3 should be easier,
but I think some level 4 stuff will accidentally get 3ed. we'll see

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-04-04 10:28:16 -05:00

31 lines
749 B
Makefile

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: base-patches
base-patches: $(MD_CSRD)
cp -a $(MD_CSRD) $(CCSRD)
find patches/base -type f -name *.patch -exec echo ">> {}" \; -exec 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
$(TMPDIR):
mkdir -p $(TMPDIR)
clean:
rm -rf $(TMPDIR)/ccsrd*
distclean:
rm -rf $(TMPDIR)