You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# targets that aren't filenames
|
|
|
|
.PHONY: all clean deploy build serve
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
BIBBLE = bibble
|
|
|
|
|
|
|
|
_includes/pubs.html: bib/pubs.bib bib/publications.tmpl
|
|
|
|
mkdir -p _includes
|
|
|
|
$(BIBBLE) $+ > $@
|
|
|
|
|
|
|
|
build: _includes/pubs.html
|
|
|
|
jekyll build
|
|
|
|
|
|
|
|
# you can configure these at the shell, e.g.:
|
|
|
|
# SERVE_PORT=5001 make serve
|
|
|
|
SERVE_HOST ?= 127.0.0.1
|
|
|
|
SERVE_PORT ?= 5000
|
|
|
|
|
|
|
|
serve: _includes/pubs.html
|
|
|
|
jekyll serve --port $(SERVE_PORT) --host $(SERVE_HOST)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -r _site _includes/pubs.html
|
|
|
|
|
|
|
|
DEPLOY_HOST ?= yourwebpage.com
|
|
|
|
DEPLOY_PATH ?= www/
|
|
|
|
RSYNC := rsync --compress --recursive --checksum --itemize-changes --delete -e ssh
|
|
|
|
|
|
|
|
deploy: clean build
|
|
|
|
$(RSYNC) _site/ $(DEPLOY_HOST):$(DEPLOY_PATH)
|