-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (27 loc) · 914 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
33
34
35
BUNDLE=bundle
DESTDIR=_site
.PHONY: all build update serve check-links check-external-links install
all: check-links
img/pism_publications.png: publications/plot_references.py publications/applications.bib
python3 $^ $@
update: img/pism_publications.png
${MAKE} -C publications/
${MAKE} -C usersmap/
build: update
${BUNDLE} exec jekyll build -d ${DESTDIR}
serve: update
${BUNDLE} exec jekyll serve
install:
${BUNDLE} install --path=vendor
check-links: build
${BUNDLE} exec htmlproofer \
--empty-alt-ignore \
--disable-external \
--root-dir ${DESTDIR} \
${DESTDIR}
check-external-links: build
${BUNDLE} exec htmlproofer \
--empty-alt-ignore \
--typhoeus-config '{ "ssl_verifypeer": false, "connecttimeout": 300, "timeout": 300, "headers" : {"User-Agent": "Mozilla/5.0 (compatible; htmlproofer)"}}' \
--root-dir ${DESTDIR} \
${DESTDIR}