aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-04-28 14:16:08 +0200
committerlonkaars <loek@pipeframe.xyz>2024-04-28 14:16:08 +0200
commit5d088aa25f69afdb9ba208def8c23b4f45bbe0b8 (patch)
treed13f3eb2e7cf7bb63664d43b9c79135808e912a7 /makefile
parentbc5b85043974e4af9c90962c2acde36b0e7de02a (diff)
use sass + fix code hightlight
Diffstat (limited to 'makefile')
-rw-r--r--makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/makefile b/makefile
index ddbddcd..b5f594d 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,20 @@
-build:
- bundle exec jekyll build --quiet
+JEKYLL_ENV ?= development
+# JEKYLL_ENV ?= production
+
+WEBROOT ?= _site
+
+JEKYLL_BUILD_ARGS += --quiet
+JEKYLL_BUILD_ARGS += --destination $(WEBROOT)
+
+# Gemfile.lock is used as a proxy for checking if the required gems are
+# installed
+
+build: Gemfile.lock
+ bundle exec jekyll build $(JEKYLL_BUILD_ARGS)
+
+Gemfile.lock: Gemfile
+ bundle install --quiet
clean:
- $(RM) -r _site
+ $(RM) -r $(WEBROOT)
+