-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (25 loc) · 895 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
all: doc
clean:
rm -rf _site
init:
bundle install --path .gems
update:
bundle update
serve:
bundle exec jekyll serve
fullclean: clean
rm -rf .gems .bundle
# generate usage.md & config.md from rst files in pgbouncer repo
FIX = python _build/md-fix.py
SRC = ../pgbouncer-cn
DOC = $(SRC)/doc
doc:
pandoc -f rst -t markdown < $(DOC)/config.rst | $(FIX) _build/frag-config-web > config.md
pandoc -f rst -t markdown < $(DOC)/usage.rst | $(FIX) _build/frag-usage-web > usage.md
pandoc -f rst -t markdown < $(SRC)/NEWS.rst | $(FIX) _build/frag-changelog-web > changelog.md
sed -e '/^[+]/s/[+]/|/g' $(SRC)/README.rst | \
pandoc -f rst -t markdown | sed -e '1,/^---/d' | $(FIX) _build/frag-install-web > install.md
python _build/downloads.py > _data/downloads.json
$(SHELL) ./_build/mk-sha.sh
check-sha:
for d in downloads/files/*.*; do cd $$d; sha256sum -c *.sha256; cd ..; done