Makefile: Add update and deploy

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-04-14 00:43:37 +02:00
parent 4828bce9d4
commit 90c2bd1130
Signed by: pep
GPG Key ID: DEDA74AEECA9D0F2
1 changed files with 12 additions and 0 deletions

View File

@ -3,8 +3,20 @@
# Maxime “pep” Buquet, 2018-02-21 00:12
#
WEBROOT ?= "/var/www/bouah.net"
all: public
deploy: clean update drafts public
mv drafts public/_drafts
cp -rv $(WEBROOT)/specs $(WEBROOT)/files public/
rm -rf $(WEBROOT)
mv public $(WEBROOT)
update:
git pull -r
git submodule update
public: clean
hugo --debug --destination public
systemctl --user start blog-goaccess.service