blog/Makefile

19 lines
240 B
Makefile
Raw Permalink Normal View History

JEKYLL ?= bundle exec jekyll
WWW_ROOT ?= $(HOME)/pub/www
BUILD_ROOT = $(PWD)/_site
site:
$(JEKYLL) build
deploy: site
rm -rf $(WWW_ROOT)
cp -r $(BUILD_ROOT) $(WWW_ROOT)
gzip -9kr $(WWW_ROOT)
clean:
rm -rf $(BUILD_ROOT)
all: site