File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 4646
4747IMPORT_PATH := github.com/cloudflare/cloudflared
4848PACKAGE_DIR := $(CURDIR ) /packaging
49- PREFIX := /usr
49+ PREFIX := /usr/local
5050INSTALL_BINDIR := $(PREFIX ) /bin/
5151INSTALL_MANDIR := $(PREFIX ) /share/man/man1/
5252
@@ -164,10 +164,19 @@ cover:
164164test-ssh-server :
165165 docker-compose -f ssh_server_tests/docker-compose.yml up
166166
167+ .PHONY : install-go
168+ install-go :
169+ ./.teamcity/install-cloudflare-go.sh
170+ export PATH=" tmp/go/bin:${PATH} "
171+
172+ .PHONY : cleanup-go
173+ cleanup-go :
174+ rm -rf /tmp/go
175+
167176cloudflared.1 : cloudflared_man_template
168177 sed -e ' s/\$${VERSION}/$(VERSION)/; s/\$${DATE}/$(DATE)/' cloudflared_man_template > cloudflared.1
169178
170- install : cloudflared cloudflared.1
179+ install : install-go cloudflared cloudflared.1 cleanup-go
171180 mkdir -p $(DESTDIR )$(INSTALL_BINDIR ) $(DESTDIR )$(INSTALL_MANDIR )
172181 install -m755 cloudflared $(DESTDIR )$(INSTALL_BINDIR ) /cloudflared
173182 install -m644 cloudflared.1 $(DESTDIR )$(INSTALL_MANDIR ) /cloudflared.1
You can’t perform that action at this time.
0 commit comments