-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
63 lines (53 loc) · 1.69 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
QIX_ENGINE_VER := "12.225.0"
SENSE_CLIENT_VER := "5.43.0"
help: ## Show this help.
@echo ''
@echo 'Available commands:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@echo ''
.PHONY: help
gen-readme: ## Generate README.md (using docker-verb)
docker run --rm -v ${PWD}:/opt/verb stefanwalther/verb
.PHONY: gen-readme
build: ## Build the extension (dev build)
npm run build
.PHONY: build
release: ## Build the extensions (release build)
npm run release
.PHONY: release
up: build ## Run the local development environment (build)
export ENV=dev && \
export DOCKER_COMPOSE=docker-compose.yml && \
docker-compose down --timeout=0 && \
docker-compose up -d --build
@echo ""
@echo "Open http://localhost:9076/sense/app/sense-media-box.qvf"
@echo ""
.PHONY: run-build
down:
export ENV=dev && \
export DOCKER_COMPOSE=docker-compose.yml && \
docker-compose down --timeout=0
.PHONY: down
up-release: release ## Run the local development environment
export ENV=release && \
export DOCKER_COMPOSE=docker-compose.yml && \
docker-compose --f=./docker-compose.yml down --timeout=0 && \
docker-compose --f=./docker-compose.yml up -d --build
@echo ""
@echo "Open http://localhost:4848/sense/app/sense-media-box.qvf"
# We might use: python -mwebbrowser http://example.com
.PHONY: run-release
#test-release: ## Test release build
# npm run release && \
# export ENV=release && \
# npm run dc-rs && \
# npm run test:e2e
#.PHONY: test-release
#
#test-dev: ## Test dev build
# npm run release && \
# export ENV=dev && \
# npm run dc-rs && \
# npm run test:e2e
#.PHONY: test-dev