clean up how the website is built a bit
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
dbd46654cf
commit
179d5c162a
17
Makefile
17
Makefile
@ -9,13 +9,18 @@ BASE_PATCH_DIR := ./patches/base
|
|||||||
BASE_PATCHES := $(wildcard $(BASE_PATCH_DIR)/*.patch)
|
BASE_PATCHES := $(wildcard $(BASE_PATCH_DIR)/*.patch)
|
||||||
BASE_PATCHES_OUT := $(subst $(BASE_PATCH_DIR),$(TMPDIR),$(BASE_PATCHES))
|
BASE_PATCHES_OUT := $(subst $(BASE_PATCH_DIR),$(TMPDIR),$(BASE_PATCHES))
|
||||||
|
|
||||||
|
WEB_PATCH_DIR := ./patches/web
|
||||||
|
WEB_PATCHES := $(wildcard $(WEB_PATCH_DIR)/*.patch)
|
||||||
|
WEB_PATCHES_OUT := $(subst $(WEB_PATCH_DIR),$(TMPDIR),$(WEB_PATCHES))
|
||||||
|
|
||||||
# DEFAULT BUILD
|
# DEFAULT BUILD
|
||||||
|
|
||||||
all: base-patches
|
all: base
|
||||||
|
|
||||||
# CCSRD VERSIONS
|
# CCSRD VERSIONS
|
||||||
|
|
||||||
base-patches: $(CCSRD) $(BASE_PATCHES_OUT)
|
base: $(CCSRD) $(BASE_PATCHES_OUT)
|
||||||
|
web: base $(WEB_PATCHES_OUT)
|
||||||
|
|
||||||
# CLEANUPS
|
# CLEANUPS
|
||||||
|
|
||||||
@ -33,10 +38,14 @@ $(TMPDIR)/%.patch: $(BASE_PATCH_DIR)/%.patch
|
|||||||
patch $(CCSRD) $< --quiet
|
patch $(CCSRD) $< --quiet
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
|
$(TMPDIR)/%.patch: $(WEB_PATCH_DIR)/%.patch
|
||||||
|
$(info >>> WEB '$<')
|
||||||
|
patch $(CCSRD) $< --quiet
|
||||||
|
@touch $@
|
||||||
|
|
||||||
# OUTPUTS
|
# OUTPUTS
|
||||||
|
|
||||||
web: base-patches
|
http: base web
|
||||||
find patches/web -type f -name \*.patch -print0 | sort -z | xargs -0 -n 1 patch $(CCSRD)
|
|
||||||
cp -a $(WEBDIR) $(TMPDIR)/
|
cp -a $(WEBDIR) $(TMPDIR)/
|
||||||
mkdir -p $(PAGESDIR)
|
mkdir -p $(PAGESDIR)
|
||||||
cp $(CCSRD) $(PAGESDIR)/index.md
|
cp $(CCSRD) $(PAGESDIR)/index.md
|
||||||
|
Loading…
x
Reference in New Issue
Block a user