Skip to content

Commit

Permalink
Add platform target to Makefile (knative#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimansk authored Nov 27, 2024
1 parent b65c395 commit 9463165
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

CGO_ENABLED=0
GOOS=linux
CGO_ENABLED=1
GOOS ?=
GOARCH ?=
TEST_IMAGES=./test/test_images/helloworld knative.dev/serving/test/test_images/grpc-ping knative.dev/serving/test/test_images/multicontainer/servingcontainer knative.dev/serving/test/test_images/multicontainer/sidecarcontainer
TEST=
TEST_IMAGE_TAG ?= latest
Expand All @@ -28,6 +29,10 @@ build:
GOFLAGS='' ./hack/build.sh -f
.PHONY: build

build-with-platform:
./hack/build.sh -p $(GOOS) $(GOARCH)
.PHONY: build-with-platform

build-cross:
GOFLAGS='' ./hack/build.sh -x
.PHONY: build-cross
Expand Down

0 comments on commit 9463165

Please sign in to comment.