replace deploy script w/ Makefile because i'm cool
parent
f81537ff7e
commit
38542c6d23
@ -0,0 +1,18 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue