blog.bouah.net/Makefile

27 lines
554 B
Makefile
Raw Normal View History

2018-03-31 01:43:24 +00:00
#
# Makefile
# Maxime "Pepe_" Buquet, 2018-02-21 00:12
#
all:
rm -rf public/*
2018-07-13 15:00:23 +00:00
hugo --debug --destination public
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
2018-07-13 15:00:23 +00:00
drafts:
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
serve:
hugo serve --debug --buildDrafts --buildFuture
.PHONY: branches drafts
2018-03-31 01:43:24 +00:00
# vim:ft=make
#