From 179d5c162a06060939dd10aae20fcfc7a6569cf0 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 4 Apr 2025 18:00:31 -0500 Subject: [PATCH] clean up how the website is built a bit Signed-off-by: Brian S. Stephan --- Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 545af87..40b07bf 100644 --- a/Makefile +++ b/Makefile @@ -9,13 +9,18 @@ BASE_PATCH_DIR := ./patches/base BASE_PATCHES := $(wildcard $(BASE_PATCH_DIR)/*.patch) 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 -all: base-patches +all: base # CCSRD VERSIONS -base-patches: $(CCSRD) $(BASE_PATCHES_OUT) +base: $(CCSRD) $(BASE_PATCHES_OUT) +web: base $(WEB_PATCHES_OUT) # CLEANUPS @@ -33,10 +38,14 @@ $(TMPDIR)/%.patch: $(BASE_PATCH_DIR)/%.patch patch $(CCSRD) $< --quiet @touch $@ +$(TMPDIR)/%.patch: $(WEB_PATCH_DIR)/%.patch + $(info >>> WEB '$<') + patch $(CCSRD) $< --quiet + @touch $@ + # OUTPUTS -web: base-patches - find patches/web -type f -name \*.patch -print0 | sort -z | xargs -0 -n 1 patch $(CCSRD) +http: base web cp -a $(WEBDIR) $(TMPDIR)/ mkdir -p $(PAGESDIR) cp $(CCSRD) $(PAGESDIR)/index.md