-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
26 lines (21 loc) · 914 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
SHELL := /bin/bash
BUILDPATH=$(CURDIR)
UTILS_PATH=/harbor-boshrelease/src/utils
UTILS_BIN_PATH=/harbor-boshrelease/make/config-utils
SMOKE_TEST_PATH=/harbor-boshrelease/src/harbor-api-testing
SMOKETEST_BIN_PATH=/harbor-boshrelease/make/smoke_test
# docker parameters
DOCKERCMD=$(shell which docker)
GOBUILDPATHINCONTAINER=/harbor-boshrelease
GOBUILDIMAGE=golang:1.14.7
compile_smoke_test:
@echo "compiling binary for smoke_test..."
@echo $(GOBUILDPATHINCONTAINER)
@$(DOCKERCMD) run --rm -v $(BUILDPATH):$(GOBUILDPATHINCONTAINER) -w $(SMOKE_TEST_PATH) $(GOBUILDIMAGE) go build -o $(SMOKETEST_BIN_PATH)
@echo "Done."
compile_config_utils:
@echo "compiling binary for config_utils..."
@echo $(GOBUILDPATHINCONTAINER)
@$(DOCKERCMD) run --rm -v $(BUILDPATH):$(GOBUILDPATHINCONTAINER) -w $(UTILS_PATH) $(GOBUILDIMAGE) go build -o $(UTILS_BIN_PATH)
@echo "Done."
all: compile_smoke_test compile_config_utils