blog.bouah.net/Makefile
Maxime “pep” Buquet 8a5ec56313
Add make branches to build draft branches
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-07 20:58:52 +00:00

26 lines
564 B
Makefile

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