blog.bouah.net/Makefile
Maxime “pep” Buquet 7aa3d7518f
Makefile: split public rule
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-14 00:42:23 +02:00

29 lines
618 B
Makefile

#
# Makefile
# Maxime “pep” Buquet, 2018-02-21 00:12
#
all: public
public:
rm -rf public/*
hugo --debug --destination public
systemctl --user start blog-goaccess.service
branches:
for branch in $(shell git branch --list "post-*"); do \
git checkout $$branch; \
hugo --debug --baseUrl "https://bouah.net/_drafts/$$branch" \
--buildDrafts --buildFuture --destination drafts/$$branch; \
done
drafts:
hugo --debug --baseUrl "https://bouah.net/_drafts" \
--buildDrafts --buildFuture --destination drafts
serve:
hugo serve --debug --buildDrafts --buildFuture
.PHONY: branches drafts
# vim:ft=make
#