2018-03-31 01:43:24 +00:00
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
# Maxime "Pepe_" Buquet, 2018-02-21 00:12
|
|
|
|
#
|
|
|
|
|
|
|
|
all:
|
2018-08-28 22:58:45 +00:00
|
|
|
rm -rf public/*
|
2018-07-13 15:00:23 +00:00
|
|
|
hugo --debug --destination public
|
2019-03-03 12:18:13 +00:00
|
|
|
systemctl --user start blog-goaccess.service
|
2018-07-13 15:00:23 +00:00
|
|
|
|
2018-12-06 18:45:50 +00:00
|
|
|
branches:
|
|
|
|
for branch in $(shell git branch --list "post-*"); do \
|
|
|
|
git checkout $$branch; \
|
2019-02-25 17:40:33 +00:00
|
|
|
hugo --debug --baseUrl "https://bouah.net/_drafts/$$branch" \
|
2018-12-06 18:45:50 +00:00
|
|
|
--buildDrafts --buildFuture --destination drafts/$$branch; \
|
|
|
|
done
|
|
|
|
|
2018-07-13 15:00:23 +00:00
|
|
|
drafts:
|
2019-02-25 17:40:33 +00:00
|
|
|
hugo --debug --baseUrl "https://bouah.net/_drafts" \
|
2018-07-13 15:00:23 +00:00
|
|
|
--buildDrafts --buildFuture --destination drafts
|
2018-03-31 01:43:24 +00:00
|
|
|
|
2018-07-13 22:26:02 +00:00
|
|
|
serve:
|
|
|
|
hugo serve --debug --buildDrafts --buildFuture
|
|
|
|
|
2018-12-06 18:45:50 +00:00
|
|
|
.PHONY: branches drafts
|
2018-03-31 01:43:24 +00:00
|
|
|
# vim:ft=make
|
|
|
|
#
|