-
Notifications
You must be signed in to change notification settings - Fork 3
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
PRODENG-2527 Added make install target to the Makefile #419
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,9 @@ build-all: builder | |
GOOS=darwin GOARCH=amd64 $(GO) go build $(BUILD_FLAGS) -o bin/launchpad-darwin-x64 main.go | ||
GOOS=darwin GOARCH=arm64 $(GO) go build $(BUILD_FLAGS) -o bin/launchpad-darwin-arm64 main.go | ||
|
||
install: build | ||
sudo install -m 755 bin/launchpad /usr/local/bin/launchpad | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is some kind of convention to have this as: install -d $(DESTDIR)$(PREFIX)/bin/
install -m 755 launchpad $(DESTDIR)$(PREFIX)/bin/ and have this somewhere in the top: PREFIX = /usr/local This way `make install PREFIX=/some/package/manager/library" will work correctly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also it shouldn't sudo on its own, user should use |
||
|
||
go-mod-tidy: builder | ||
$(GO) go mod tidy | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.