Skip to content

Commit

Permalink
FvwmPrompt: add GOFLAGS to build stripped
Browse files Browse the repository at this point in the history
Fixes #618
  • Loading branch information
Zirias authored and ThomasAdam committed Sep 26, 2021
1 parent 3663d42 commit 9bac03e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/FvwmPrompt/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
if FVWM_BUILD_GOLANG
GOCMD=go
GOBUILD=$(GOCMD) build
GOFLAGS=-ldflags="-s -w"
GOCLEAN=$(GOCMD) clean
BINARY_NAME=FvwmPrompt

all: build
build:
$(GOBUILD) -mod=vendor -o $(BINARY_NAME) -v
$(GOBUILD) $(GOFLAGS) -mod=vendor -o $(BINARY_NAME) -v
clean:
$(GOCLEAN)
rm -f $(BINARY_NAME)
rm -f $(BINARY_UNIX)
run:
$(GOBUILD) -mod=vendor -o $(BINARY_NAME) -v ./...
$(GOBUILD) $(GOFLAGS) -mod=vendor -o $(BINARY_NAME) -v ./...
./$(BINARY_NAME)

install:
Expand Down

0 comments on commit 9bac03e

Please sign in to comment.