This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (54 loc) · 1.47 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
################################################################################
# global paths
################################################################################
# project root
ROOT = $(abspath .)
# build artifacts
BUILD ?= ${ROOT}/build
# outputs
DIST ?= ${ROOT}/dist
# website outputs
WWW = ${DIST}/www
SRS_JSON = ${ROOT}/support/srs.json
################################################################################
# meta-targets
################################################################################
# meta target to build everything
all:
.PHONY: all
# meta target to set up dependencies
setup:
${ROOT}/.did_setup: # automatically run setup on first build
make setup
@mkdir -p $(dir $@) && touch $@
all: ${ROOT}/.did_setup
.PHONY: setup
# meta target for the website
www:
all: www
.PHONY: www
# meta target for command line tools
cli:
all: cli
.PHONY: cli
# meta target for tests
test:
.PHONY: test
# meta target to clean everything built
clean: clean-build clean-dist
clean-build:
rm -rf ${BUILD}
clean-dist:
rm -rf ${DIST}
.PHONY: clean clean-build clean-dist
################################################################################
# includes
################################################################################
include support/emscripten.mk
include support/http-server.mk
include support/meson.mk
include support/node.mk
include shark-cli/shark-cli.mk
include shark-wasm/shark-wasm.mk
include shark/shark.mk
include tank/tank.mk