commit b57ee75018dbbf6bccb8f8108acec07db932d43a
parent beb2121c782375074a8bd5063775eef188a7fade
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Thu,  3 Sep 2020 22:18:31 +0200

Add Makefile

Targets: deploy, blogroll and clean.

Diffstat:
M.gitignore | 1+
AMakefile | 23+++++++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,2 +1,3 @@ /resources/ /public/ +/blogroll.ompl diff --git a/Makefile b/Makefile @@ -0,0 +1,23 @@ +DEST = /srv/oscarbenedito.com + +.PHONY: default deploy blogroll clean + +default: + @echo "No default target, please choose one: deploy, blogroll, clean" + @exit 2 + +deploy: clean + git fetch origin master + git reset --hard origin/master + git verify-commit master + hugo + rm -f public/index.xml + rsync --perms --recursive --checksum --delete public/ $(DEST) + +blogroll: data/blogroll.json + +data/blogroll.json: blogroll.ompl + ./create-blogroll.py blogroll.ompl > data/blogroll.json + +clean: + rm -rf public resources