-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
51 lines (42 loc) · 1.58 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
URL = https://pcp.io
WEB = pcp-website.github.io
PCP = ../pcp
RSYNC := rsync -azvPL --prune-empty-dirs --exclude '*.haml' \
--exclude GNUmakefile --exclude Makefile --exclude '*.swp' \
--exclude '.git' --exclude '.github' --exclude '.gitignore'
LDIRT = links.out
HAMLFILES = \
index features documentation community team website faq \
presentations glider screenshots download testimonials \
gsoc/2015/ideas gsoc/2016/ideas gsoc/2017/ideas gsoc/2018/ideas \
gsoc/2019/ideas gsoc/2020/ideas gsoc/2021/ideas gsoc/2022/ideas \
gsoc/contributors \
gsod/2019/ideas gsod/2020/ideas gsod/2021/ideas \
gsod/2021/proposal gsod/2021/casestudy \
conference/2018/home conference/2018/contact conference/2018/schedule \
conference/2019/home conference/2019/contact conference/2019/schedule \
REFERERS = slides release
all: clean default
default:
rm -f docs/favicon.ico
ln -s images/pcp.ico docs/favicon.ico
PATH=/usr/local/bin:$$PATH compass compile -c compass/config.rb -s compressed
for h in `echo $(HAMLFILES)`; do \
haml $$h.haml > docs/$$h.html; \
done
for r in `echo $(REFERERS)`; do \
$(RSYNC) $$r/index.html docs/$$r; \
done
test -d $(PCP)/images && $(RSYNC) $(PCP)/images .
test -d $(PCP)/man/html && $(RSYNC) $(PCP)/man/html/* docs/docs
$(RSYNC) CNAME GPG-KEY-PCP images snaps assets papers docs
git add docs
git status
uncompressed:
sass mycss.scss css/uncompressed.css
check:
linkchecker --check-extern -v $(URL) | grep -v seconds > links.out || /bin/true
test -f links.out && grep "errors found" links.out
.PHONY: clean
clean:
rm -rf $(LDIRT) || /bin/true