aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2024-07-01 14:29:47 +0200
committerEgor Tensin <egor@tensin.name>2024-07-01 14:29:47 +0200
commit6c23a2b543af035e8b26c9ff090527e3461d5e2b (patch)
tree96fad37a48fbc308662ae90121d02e042cc05c1b /Makefile
parentbump dependencies (diff)
downloadfucktipp.ing-6c23a2b543af035e8b26c9ff090527e3461d5e2b.tar.gz
fucktipp.ing-6c23a2b543af035e8b26c9ff090527e3461d5e2b.zip
Makefile: add maintenance alias
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 317cbda..8a36426 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,24 @@ ruby:
deps: ruby
bundle install
+.PHONY: maintenance
+maintenance: ruby
+ bundle update
+
+ @git_status="$$( git status --porcelain=v1 )" && \
+ if [ -z "$$git_status" ]; then \
+ true ; \
+ elif [ "$$git_status" = ' M Gemfile.lock' ]; then \
+ git commit -am 'bump dependencies' && \
+ git push -q ; \
+ else \
+ echo ; \
+ echo '-----------------------------------------------------------------'; \
+ echo 'Error: unrecognized modifications in the repository'; \
+ echo '-----------------------------------------------------------------'; \
+ exit 1; \
+ fi
+
jekyll := bundle exec jekyll
.PHONY: build