make: Parameterize by top-level-domain

This commit is contained in:
Lorenz Leutgeb
2025-11-06 15:48:32 +01:00
parent e37e8f14e9
commit 464ad1eb94
4 changed files with 9 additions and 5 deletions
+7 -4
View File
@@ -1,8 +1,11 @@
TLD ?= dev
CONFIG = --config _config.yml,_config.$(TLD).yml
default:
bundle exec jekyll build
bundle exec jekyll build $(CONFIG)
serve:
bundle exec jekyll serve --port 3000 --livereload
bundle exec jekyll serve $(CONFIG) --port 3000 --livereload
dependencies:
gem install jekyll
@@ -11,12 +14,12 @@ cloudflare:
sudo gem install bundler
bundle config path vendor/bundle
bundle install
bundle exec jekyll build
bundle exec jekyll build $(CONFIG)
svgs:
scripts/cleanup-svgs.sh assets/images/*.svg
publish: default
wrangler deploy
wrangler deploy --name="website-$(TLD)"
.PHONY: default publish