-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (37 loc) · 985 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright © 2024 Luther Systems, Ltd. All right reserved.
# Makefile
#
# The primary project makefile that should be run from the root directory and is
# able to build and run the entire application.
PROJECT_REL_DIR=.
include ${PROJECT_REL_DIR}/common.mk
SUBSTRATEHCP_FILE ?= ${PWD}/${SUBSTRATE_PLUGIN_PLATFORM_TARGETED}
export SUBSTRATEHCP_FILE
.DEFAULT_GOAL := default
.PHONY: default
default: all
.PHONY: all clean
clean:
rm -rf build
all: plugin
.PHONY: plugin plugin-linux plugin-darwin
plugin: ${SUBSTRATE_PLUGIN}
plugin-linux: ${SUBSTRATE_PLUGIN_LINUX}
plugin-darwin: ${SUBSTRATE_PLUGIN_DARWIN}
.PHONY: citest
citest: plugin test
@
GO_TEST_BASE=${GO_HOST_EXTRA_ENV} go test ${GO_TEST_FLAGS}
GO_TEST_TIMEOUT_10=${GO_TEST_BASE} -timeout 10m
.PHONY: go-test
go-test:
${GO_TEST_TIMEOUT_10} ./...
.PHONY: test
test: go-test
@
${STATIC_PLUGINS_DUMMY}:
${MKDIR_P} $(dir $@)
./scripts/obtain-plugin.sh
touch $@
${SUBSTRATE_PLUGIN}: ${STATIC_PLUGINS_DUMMY}
@