-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (18 loc) · 706 Bytes
/
Makefile
File metadata and controls
20 lines (18 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PHONY: i
# for local development, just run this and then reference new file in bin
# builds and install binary to $GOPATH/bin/note-cli-golang
# use `go build` to instead output binary to cwd
install:
go install
i: install
# if updates happened elsewhere, this gets those updates
# while keeping other things, like custom local git remotes, working changes
# basically it's a fancy git pull
# same thing from this dir, but less educational: `go get -u`
update:
go get -u github.com/kdavh/note-cli-golang
fix-git:
# golang automatically pulls using https, add ssh:
git remote add originssh git@github.com:kdavh/note-cli-golang.git
g fetch originssh master
g branch --set-upstream-to=originssh/master