2018-10-13 23:37:36 -06:00
|
|
|
# Makefile for Phyllis' Fantasies Web site with Jekyll
|
|
|
|
|
MAKE_ROOT_DIR = $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
|
|
|
|
|
|
-include defaults.mk
|
|
|
|
|
DEPLOY_DIR ?= $(MAKE_ROOT_DIR)/target
|
|
|
|
|
|
|
|
|
|
.PHONY: test deploy
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
-(cd sitesrc && jekyll serve)
|
|
|
|
|
|
|
|
|
|
deploy:
|
2018-10-14 02:17:26 -06:00
|
|
|
[ ! -d $(DEPLOY_DIR) ] && mkdir -p $(DEPLOY_DIR) || true
|
|
|
|
|
(cd sitesrc && jekyll build -d $(DEPLOY_DIR))
|