forked from koajs/koajs.com
/
Makefile
36 lines (26 loc) · 771 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
36
RAW = https://raw.githubusercontent.com
DOCS = public/index.md \
public/context.md \
public/request.md \
public/response.md \
public/guide.md
index.html: views/index.jade $(DOCS)
@./node_modules/.bin/pug --obj pug-options.js $< -o .
public/index.md:
curl -s $(RAW)/koajs/koa/master/docs/api/index.md \
| ./rewrite.js > $@
public/context.md:
curl -s $(RAW)/koajs/koa/master/docs/api/context.md \
| ./rewrite.js > $@
public/request.md:
curl -s $(RAW)/koajs/koa/master/docs/api/request.md \
| ./rewrite.js > $@
public/response.md:
curl -s $(RAW)/koajs/koa/master/docs/api/response.md \
| ./rewrite.js > $@
public/guide.md:
curl -s $(RAW)/koajs/koa/master/docs/guide.md \
| ./rewrite.js > $@
clean:
rm -fr *.html $(DOCS)
.PHONY: clean