-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (25 loc) · 804 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
# Generating parsable version of spec (needed to build testutils)
comark-testutils/spec.json:
cd spec && make spec.json
cp spec/spec.json comark-testutils/spec.json
spec: comark-testutils/spec.json
progit:
git clone https://github.com/progit/progit.git
comark-html/progit.md: progit
echo "" > $@
for lang in ar az be ca cs de en eo es es-ni fa fi fr hi hu id it ja ko mk nl no-nb pl pt-br ro ru sr th tr uk vi zh zh-tw; do \
for i in `seq 1 2`; do \
cat progit/$$lang/*/*.markdown >> $@; \
done; \
done
benchfiles: comark-html/progit.md
gh-pages:
git checkout master
stack haddock
git checkout gh-pages
mkdir -p docs
cp -r $$(stack path --local-doc-root)/* docs/
git add docs/
git commit -m "Automatic Haddock commit" --allow-empty
git push origin gh-pages
git checkout master