-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (47 loc) · 1.47 KB
/
Makefile
File metadata and controls
60 lines (47 loc) · 1.47 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
DENO_VERSION := 1.41.2
DENO_INSTALL := third_party
ifeq ($(OS),Windows_NT)
HOST=windows
CLI_SUFFIX=.exe
TEST_DIR=test\\
else
HOST_S := $(shell uname -s)
TEST_DIR=test/
ifeq ($(HOST_S),Linux)
HOST=linux
endif
ifeq ($(HOST_S),Darwin)
HOST +=macos
endif
HOST_P := $(shell uname -p)
ifeq ($(HOST_P),x86_64)
ARCH=amd64
endif
ifneq ($(filter %86,$(HOST_P)),)
ARCH=i386
endif
ifneq ($(filter arm%,$(HOST_P)),)
ARCH=arm
endif
endif
include deno.mk
.PHONY: all run dev build test test-apps test-auth test-crypt test-docker test-io test-rest test-xmrig help fmt vendor
all: help
run: $(DENO_BIN) ## Run Server
$(call deno,task launch-server)
dev: $(DENO_BIN) ## Run Dev Server
$(call deno,task dev-server)
bundle: $(DENO_BIN) ## Bundle code
$(call deno,bundle --unstable mod.ts bundle.js)
docker-build: ## Build Docker Image
docker build -t lthn/server:latest .
build-sdk-typescript-angular: ## SDK Build: Angular
bash docs/build-sdk.sh -p typescript-angular
build-sdk-typescript: ## SDK Build: TypeScript
bash docs/build-sdk.sh -p typescript
build-sdk-python: ## SDK Build: TypeScript
bash docs/build-sdk.sh -p python
test: $(DENO_BIN) ## Run full testsuite
$(call deno,test -A --unstable --import-map vendor/import_map.json $(TEST_DIR))
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m make %-30s\033[0m %s\n", $$1, $$2}'