blog.bouah.net/Makefile

43 lines
854 B
Makefile
Raw Permalink Normal View History

2018-03-31 01:43:24 +00:00
#
# Makefile
# Maxime “pep” Buquet, 2018-02-21 00:12
2018-03-31 01:43:24 +00:00
#
WEBROOT ?= "/var/www/bouah.net"
all: update deploy
deploy: clean 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
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
clean:
rm -rf public drafts
.PHONY: deploy update public branches drafts serve clean
2018-03-31 01:43:24 +00:00
# vim:ft=make
#