From 07ee7ac29115ce01075f01165d9474e2526baf26 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 25 Jan 2025 00:15:56 +0100 Subject: add build command for distribution --- .gitignore | 1 + makefile | 5 +++++ 2 files changed, 6 insertions(+) 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 . + -- cgit v1.2.3