Skip to content

Commit

Permalink
Build a static binary by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
thmull committed Aug 30, 2023
1 parent 32994cf commit 5dfbb56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@

SHELL := /bin/bash

GOFLAGS ?= $(GOFLAGS:)
GOFLAGS ?= -ldflags="-extldflags=-static" $(GOFLAGS:)

export KIPROTECT_TEST = yes

KIPROTECT_TEST_CONFIG ?= "$(shell pwd)/config"
KIPROTECT_TEST_SETTINGS ?= "$(shell pwd)/testing/settings"
KIPROTECT_TEST_API_SETTINGS ?= "$(shell pwd)/testing/api/settings"

all: dep install
all: dep build install

build:
@go build $(GOFLAGS) ./...
@CGO_ENABLED=0 go build $(GOFLAGS) ./...

dep:
@go get ./...

install:
@go install $(GOFLAGS) ./...
@CGO_ENABLED=0 go install $(GOFLAGS) ./...

copyright:
python .scripts/make_copyright_headers.py
Expand Down

0 comments on commit 5dfbb56

Please sign in to comment.