Skip to content

Commit

Permalink
Merge pull request #544 from mpldr/makefile-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby authored Apr 12, 2022
2 parents 6eeee8e + 93682ab commit 556ca5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 41 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Calculate version
version = $(shell ./scripts/version-at-commit.sh)
version = $(git describe --always --tags --dirty)

rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))

Expand All @@ -10,7 +10,7 @@ PROTO_SOURCES = $(call rwildcard,,*.proto)


build:
GGO_ENABLED=0 go build -ldflags "-s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=$(version)" cmd/headscale/headscale.go
CGO_ENABLED=0 go build -trimpath -buildmode=pie -mod=readonly -ldflags "-s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=$(version)" cmd/headscale/headscale.go

dev: lint test build

Expand Down
39 changes: 0 additions & 39 deletions scripts/version-at-commit.sh

This file was deleted.

0 comments on commit 556ca5f

Please sign in to comment.