Skip to content

Commit

Permalink
UTILS: Add buikd arg for debian
Browse files Browse the repository at this point in the history
  • Loading branch information
Cian911 committed Jan 22, 2022
1 parent 84c7976 commit b6fc3a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build build-arm run
.PHONY: build build-arm build-debian run
.PHONY: test-all test-watcher test-event test-utils test-cmd lint-all vet-all

VERSION := test-build
Expand All @@ -10,6 +10,11 @@ build:
-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD} -X main.BuildTime=${BUILD_TIME}" \
-o ./bin/switchboard ./cmd

build-debian:
@GOOS=linux GOARCH=amd64 go build \
-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD} -X main.BuildTime=${BUILD_TIME}" \
-o ./bin/switchboard ./cmd

build-arm:
@GOOS=linux GOARCH=arm GOARM=5 go build \
-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD} -X main.BuildTime=${BUILD_TIME}" \
Expand Down

0 comments on commit b6fc3a6

Please sign in to comment.