Brian S. Stephan 50fd495b2c
replace non-breaking space characters with spaces
this is a formatting/publishing artifact that we don't need in the
Markdown, and the existence of those characters is throwing off some
other scripts

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-04-04 13:19:53 -05:00

32 lines
840 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
find patches/web -type f -name \*.patch -exec echo ">> {}" \; -exec patch $(CCSRD) {} \;
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)