-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (18 loc) · 908 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
OLD=$(shell head -n1 out/ceu)
all:
pandoc -s -o out/index.html md/index.md metadata.yaml --template=template.html --syntax-definition=ceu-syntax/ceu.xml --highlight-style ceu-syntax/my.theme
pandoc -s -o out/manuals.html --template=template.html md/manuals.md --metadata=title:"Céu - Manuals"
pandoc -s -o out/tutorials.html --template=template.html md/tutorials.md --metadata=title:"Céu - Tutorials"
pandoc -s -o out/cib.html --template=template.html md/cib.md --metadata=title:"Céu - CiB"
pandoc -s -o out/publications.html --template=template.html md/publications.md --metadata=title:"Céu - Publications"
clean:
rm -f out/index.html
rm -f out/cib.html
rm -f out/manuals.html
rm -f out/template.html
rm -f out/publications.html
upload:
sed -i '1s|.*|#!../lua-5.3.3/src/lua|' out/ceu
cd out && rsync -e ssh -avL . fsantanna@ceu-lang.org:site/
sed -i '1s|.*|$(OLD)|' out/ceu
.PHONY: cib