aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-25 00:15:56 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-25 00:15:56 +0100
commit07ee7ac29115ce01075f01165d9474e2526baf26 (patch)
tree0f0b67c1849f7c6cb725ebcb5be20392be13e7a0
parent0721e9d1370109a1c0c96e3c3b3754a4c2ffc659 (diff)
add build command for distribution
-rw-r--r--.gitignore1
-rw-r--r--makefile5
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 487f1af..2931d59 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ _site
.DS_Store
Gemfile.lock
+_dist.tar.gz
diff --git a/makefile b/makefile
index 77c6e51..053c267 100644
--- a/makefile
+++ b/makefile
@@ -2,6 +2,7 @@
JEKYLL_ENV ?= development
# JEKYLL_ENV ?= production
+export JEKYLL_ENV
WEBROOT ?= _site
@@ -35,3 +36,7 @@ $(REPO_META):
clean: FORCE
$(RM) -r $(WEBROOT)
+_dist.tar.gz: FORCE
+ $(MAKE) -E JEKYLL_ENV=production -B build
+ tar -zcf $@ -C _site .
+