Makefile restructure and clean target
This commit is contained in:
parent
81839cd119
commit
90faa52945
1 changed files with 6 additions and 3 deletions
|
@ -1,8 +1,5 @@
|
||||||
NAME = rexclient
|
NAME = rexclient
|
||||||
|
|
||||||
commit.txt:
|
|
||||||
go generate
|
|
||||||
|
|
||||||
run: commit.txt
|
run: commit.txt
|
||||||
go run .
|
go run .
|
||||||
|
|
||||||
|
@ -11,3 +8,9 @@ debug: commit.txt
|
||||||
|
|
||||||
build: commit.txt
|
build: commit.txt
|
||||||
go build -tags no_emoji -trimpath -ldflags="-s -w" -buildvcs=false -o $(NAME)
|
go build -tags no_emoji -trimpath -ldflags="-s -w" -buildvcs=false -o $(NAME)
|
||||||
|
|
||||||
|
commit.txt:
|
||||||
|
go generate
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f rexclient
|
||||||
|
|
Loading…
Add table
Reference in a new issue