Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Jan 16, 2022. It is now read-only.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
45 lines (31 loc) · 1.1 KB
/
Copy pathMakefile
File metadata and controls
45 lines (31 loc) · 1.1 KB
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
37
38
39
40
41
42
43
44
45
-include config.mk
BUILDTYPE ?= Release
PYTHON ?= python
DESTDIR ?=
SIGN ?=
PREFIX ?= /usr/local
# Default to verbose builds.
# To do quiet/pretty builds, run `make V=` to set V to an empty string,
# or set the V environment variable to an empty string.
V ?= 1
apidoc_sources = $(wildcard doc/api/*.markdown)
apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html))\
$(addprefix out/,$(apidoc_sources:.markdown=.json))
apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
doc: $(apidoc_dirs)$(apiassets)$(apidocs) tools/doc/ $(NODE_EXE)
$(apidoc_dirs):
mkdir -p $@
out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
cp $<$@
out/doc/%: doc/%
cp -r $<$@
out/doc/api/%.json: doc/api/%.markdown $(NODE_EXE)
node tools/doc/generate.js --format=json $<>$@
out/doc/api/%.html: doc/api/%.markdown $(NODE_EXE)
node tools/doc/generate.js --format=html --template=doc/template.html $<>$@
docopen: out/doc/api/all.html
-google-chrome out/doc/api/all.html
docclean:
-rm -rf out/doc
.PHONY: doc