-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 848 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 848 Bytes
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
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(shell dirname $(mkfile_path))
# Change this to your own local ip address for testing,
# or to the ip address of the control server when ~~testing~~ running in production.
# This will be put in the hosts file.
export CONTROL_SERVER_IP ?= 192.168.2.76
lint_fix:
goimports -local baas -w **/*.go
golangci-lint run --fix
lint:
goimports -local baas -w **/*.go
golangci-lint run
management_os: management_initramfs management_kernel
management_initramfs:
@$(mkfile_dir)/management_os/build/build_management_initramfs.sh
management_initramfs: control_server/static/initramfs
control_server_docker:
@docker-compose -f $(mkfile_dir)/docker-compose.yml up --build
.PHONY: control_server
control_server:
cd $(mkfile_dir) && sudo env GO111MODULE=on go run ./control_server