Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an install target for Linux and Darwin #1

Merged
merged 1 commit into from May 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 13 additions & 1 deletion Makefile
@@ -1,3 +1,8 @@
COMMENT= an experimental project that allows you connect to Azure Cloud Shell from a local terminal without a browser.

BINDIR= /usr/local/sbin
UNAME:= $(shell uname)

all: build-linux build-darwin build-windows

build-linux:
Expand All @@ -9,7 +14,14 @@ build-darwin:
build-windows:
GOARCH=amd64 GOOS=windows go build -o bin/windows/amd64/azshell.exe .

install:
ifeq ($(UNAME), Linux)
install -o root -g bin bin/linux/amd64/azshell $(BINDIR)
else ifeq ($(UNAME), Darwin)
install -o root -g bin bin/darwin/amd64/azshell $(BINDIR)
endif

clean:
rm -rf dist/
rm -rf bin/
rm azshell
rm azshell