Skip to content

Commit f441f44

Browse files
committed
Aligning with upstream to avoid conflicts
1 parent 24ee7c0 commit f441f44

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

Makefile

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ else
2424
DEB_PACKAGE_NAME := $(BINARY_NAME)
2525
endif
2626

27-
DATE := $(shell date -u '+%Y-%m-%d-%H%M UTC')
27+
DATE := $(shell date -u -r RELEASE_NOTES '+%Y-%m-%d-%H%M UTC')
2828
VERSION_FLAGS := -X "main.Version=$(VERSION)" -X "main.BuildTime=$(DATE)"
2929
ifdef PACKAGE_MANAGER
3030
VERSION_FLAGS := $(VERSION_FLAGS) -X "github.com/cloudflare/cloudflared/cmd/cloudflared/updater.BuiltForPackageManager=$(PACKAGE_MANAGER)"
@@ -59,8 +59,6 @@ ifeq ($(LOCAL_OS),freebsd)
5959
endif
6060
INSTALL_BINDIR := $(PREFIX)/bin
6161
INSTALL_MANDIR := $(PREFIX)/share/man/man1
62-
CF_GO_PATH := /tmp/go
63-
PATH := $(CF_GO_PATH)/bin:$(PATH)
6462

6563
LOCAL_ARCH ?= $(shell uname -m)
6664
ifneq ($(GOARCH),)
@@ -132,6 +130,10 @@ all: cloudflared test
132130
clean:
133131
go clean
134132

133+
.PHONY: vulncheck
134+
vulncheck:
135+
@govulncheck ./...
136+
135137
.PHONY: cloudflared
136138
cloudflared:
137139
ifeq ($(FIPS), true)
@@ -182,19 +184,10 @@ fuzz:
182184
@go test -fuzz=FuzzNewIdentity -fuzztime=600s ./tracing
183185
@go test -fuzz=FuzzNewAccessValidator -fuzztime=600s ./validation
184186

185-
.PHONY: install-go
186-
install-go:
187-
rm -rf ${CF_GO_PATH}
188-
./.teamcity/install-cloudflare-go.sh
189-
190-
.PHONY: cleanup-go
191-
cleanup-go:
192-
rm -rf ${CF_GO_PATH}
193-
194187
cloudflared.1: cloudflared_man_template
195188
sed -e 's/\$${VERSION}/$(VERSION)/; s/\$${DATE}/$(DATE)/' cloudflared_man_template > cloudflared.1
196189

197-
install: install-go cloudflared cloudflared.1 cleanup-go
190+
install: cloudflared cloudflared.1
198191
mkdir -p $(DESTDIR)$(INSTALL_BINDIR) $(DESTDIR)$(INSTALL_MANDIR)
199192
install -m755 cloudflared $(DESTDIR)$(INSTALL_BINDIR)/cloudflared
200193
install -m644 cloudflared.1 $(DESTDIR)$(INSTALL_MANDIR)/cloudflared.1
@@ -240,6 +233,10 @@ github-release:
240233
python3 github_release.py --path $(PWD)/built_artifacts --release-version $(VERSION)
241234
python3 github_message.py --release-version $(VERSION)
242235

236+
.PHONY: macos-release
237+
macos-release:
238+
python3 github_release.py --path $(PWD)/artifacts/ --release-version $(VERSION)
239+
243240
.PHONY: r2-linux-release
244241
r2-linux-release:
245242
python3 ./release_pkgs.py

0 commit comments

Comments
 (0)