18 lines
240 B
Makefile
Executable file
18 lines
240 B
Makefile
Executable file
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
|
|
|