Skip to content

Commit

Permalink
Makefile: Fixup make before release
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Feb 28, 2021
1 parent a0cd90a commit 611f281
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ GOFLAGS ?= -buildmode=pie -trimpath

SOURCES = $(shell go list -f '{{range .GoFiles}}{{$$.Dir}}/{{.}} {{end}}' ./...)

TAG = $(shell git describe --abbrev=0 --tags)

all: man build
build: sbctl
man: $(MANS)
Expand All @@ -28,11 +30,6 @@ install: man
done;
install -Dm644 LICENSE -t $(DESTDIR)$(SHRDIR)/licenses/$(PROGNM)

.PHONY: tag
tag:
git describe --exact-match >/dev/null 2>&1 || git tag -s $(shell date +%Y%m%d)
git push --tags

.PHONY: release
release:
mkdir -p releases
Expand Down

0 comments on commit 611f281

Please sign in to comment.