Skip to content

Commit

Permalink
strip binary
Browse files Browse the repository at this point in the history
  • Loading branch information
smallkirby committed Jun 21, 2021
1 parent 818a38a commit 829fd89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ run:
build:
GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME)

release:
$(GOBUILD) -ldflags "-s -w" -o $(BINARY_NAME)

fmt:
find . -type f -name "*.go" | xargs -i $(GOCMD) fmt {}

install: Makefile
$(MAKE) build
$(MAKE) release
cp ./aip /usr/bin/aip

.PHONY: fmt build install run

.PHONY: fmt build install run release

0 comments on commit 829fd89

Please sign in to comment.