Skip to content

Commit 8620eac

Browse files
Yongli Chenjaer-tsun
authored andcommitted
smooth build process (#208)
1 parent 7980d33 commit 8620eac

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ else
120120
all-binaries: azure-cnm-plugin azure-cni-plugin azure-cns
121121
endif
122122

123+
ifeq ($(GOOS),linux)
123124
all-images: azure-npm-image
125+
else
126+
all-images:
127+
@echo "Nothing to build. Skip."
128+
endif
124129

125130
# Clean all build artifacts.
126131
.PHONY: clean

build/build-all-containerized.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/usr/bin/env bash
22

33
BUILD_CONTAINER_NAME=acn-builder
4-
GOOS=$1
5-
GOARCH=$2
64

75
if [ ! "$(docker ps -q -f name=$BUILD_CONTAINER_NAME)" ]; then
86
if [ "$(docker ps -aq -f status=exited -f name=$BUILD_CONTAINER_NAME)" ]; then
97
docker rm -f $BUILD_CONTAINER_NAME
108
fi
119
fi
1210

13-
make all-containerized
11+
GOOS=$1 GOARCH=$2 make all-containerized

0 commit comments

Comments
 (0)