-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (23 loc) · 869 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PYTHON=python2.7
# targets that aren't filenames
.PHONY: all clean deploy
all: _includes/pubs.html _site/index.html _site/wacas14/index.html
BUILDARGS :=
_site/index.html _site/wacas14/index.html:
jekyll build --config _config.yml $(BUILDARGS)
_includes/pubs.html: bib/sampa-pubs.bib bib/publications.tmpl
git submodule init; git submodule update
mkdir -p _includes
$(PYTHON) bibble/bibble.py $+ > $@
_site/index.html: $(wildcard *.html) _includes/pubs.html _config.yml \
_layouts/default.html
_site/wacas14/index.html: $(wildcard wacas14/*.md) _config.yml \
_layouts/wacas.html
clean:
$(RM) -r _site _includes/pubs.html
CSEHOST := bicycle.cs.washington.edu
RSYNCARGS := --compress --recursive --checksum --itemize-changes \
--delete -e ssh --perms --chmod=ug+rw
rsync:
rsync $(RSYNCARGS) _site/ $(CSEHOST):/cse/www2/sampa/new
deploy: clean all rsync