forked from vito/booklit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (20 loc) · 1.07 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
targets=ast/booklit.peg.go docs/css/booklit.css errhtml/errors.css errhtml/bindata.go render/html/bindata.go render/text/bindata.go docs/outputs/index.html
all: $(targets)
ast/booklit.peg.go: ast/booklit.peg
pigeon ast/booklit.peg | goimports > ast/booklit.peg.go
errhtml/errors.css: less/errors.less less/*.less
yarn run lessc $< $@
docs/css/booklit.css: less/docs.less less/*.less
yarn run lessc $< $@
less/logo-url.less: docs/css/images/booklit.svg
yarn run build-logo-url-less
errhtml/bindata.go: errhtml errhtml/*.tmpl errhtml/*.css
go-bindata -o errhtml/bindata.go -pkg errhtml errhtml/*.tmpl errhtml/*.css
render/html/bindata.go: render/html render/html/*.tmpl
go-bindata -o render/html/bindata.go -pkg html render/html/*.tmpl
render/text/bindata.go: render/text render/text/*.tmpl
go-bindata -o render/text/bindata.go -pkg text render/text/*.tmpl
docs/outputs/index.html: docs/hello/*.lit docs/hello/html/*.tmpl docs/hello/go/*
cd docs/hello && booklit --plugin github.com/vito/booklit/docs/hello/go --html-templates html -i index.lit -o ../outputs
clean:
rm -f $(targets)