Brian S. Stephan 281a0acbe1
remove a lot of the OG extra content and similar references
these are things that are not included in the core commons version
because they're homebrew, because they are a lot of writing/creativity
that I don't feel comfortable stealing/distributing, or so on. most of
Old Gus's and the community's content is removed in order to have a
near-CSRD state

what remains is the rules clarifications, errata, splicing together some
information from secondary sources (like the Starter Set or from game
authors on Twitter), and organizational assists

things removed includes ideas that I like, but either plan to write my
own way in the future, or again I just don't feel comfortable copying
verbatim, especially if, for instance, I have my own process and don't
need to advocate for a different one

stuff that's likely to get folded into my core is arbitrarily numbered
300s instead of 000s
2025-07-23 11:17:49 -05:00

67 lines
1.4 KiB
Makefile

TMPDIR := ./_tmp
CSRD := ./og-csrd/index.html
MD_CSRD := $(TMPDIR)/og-csrd.md
CCSRD := $(TMPDIR)/ccsrd.md
STYLESDIR := ./pandoc
WEBDIR := $(TMPDIR)/web
HTML_OUT := $(WEBDIR)/index.html
BASE_PATCH_DIR := ./patches/base
BASE_PATCHES := $(wildcard $(BASE_PATCH_DIR)/*.patch)
BASE_PATCHES_OUT := $(subst $(BASE_PATCH_DIR),$(TMPDIR),$(BASE_PATCHES))
DE_OGCSRD_PATCH_DIR := ./patches/de-ogcsrd
DE_OGCSRD_PATCHES := $(wildcard $(DE_OGCSRD_PATCH_DIR)/*.patch)
DE_OGCSRD_PATCHES_OUT := $(subst $(DE_OGCSRD_PATCH_DIR),$(TMPDIR),$(DE_OGCSRD_PATCHES))
# DEFAULT BUILD
all: base
# CCSRD VERSIONS
base: $(CCSRD) $(BASE_PATCHES_OUT)
de-ogcsrd: base $(DE_OGCSRD_PATCHES_OUT)
# CLEANUPS
clean:
rm -rf $(TMPDIR)/ccsrd*
rm -rf $(TMPDIR)/*.patch
distclean:
rm -rf $(TMPDIR)
# PATCHERS
$(TMPDIR)/%.patch: $(BASE_PATCH_DIR)/%.patch
$(info >>> BASE '$<')
@patch $(CCSRD) $< --quiet
@touch $@
$(TMPDIR)/%.patch: $(DE_OGCSRD_PATCH_DIR)/%.patch
$(info >>> BASE '$<')
@patch $(CCSRD) $< --quiet
@touch $@
# OUTPUTS
web: $(CCSRD)
mkdir -p $(WEBDIR)
pandoc $(CCSRD) --data-dir=$(STYLESDIR) --template bss -s -o $(HTML_OUT)
# BUILD STEPS
# create the build dir
$(TMPDIR):
mkdir -p $(TMPDIR)
# generate the root markdown file
$(MD_CSRD): $(CSRD) | $(TMPDIR)
pandoc $(CSRD) -o $(MD_CSRD) --columns 120
# create the markdown file to patch
$(CCSRD): $(MD_CSRD)
cp -a $(MD_CSRD) $(CCSRD)