aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 .
+