]> Cypherpunks.ru repositories - nncp.git/commitdiff
Useless mv
authorSergey Matveev <stargrave@stargrave.org>
Wed, 20 Nov 2019 07:27:30 +0000 (10:27 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 24 Nov 2019 15:08:55 +0000 (18:08 +0300)
Makefile

index 46ddcf098f5fa750c69ecf538eee0b1cca063dc7..fd65c2511333673266d6a21fc4f2cba16be61d5c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,9 +49,10 @@ all: $(ALL)
 
 $(ALL):
        mkdir -p $(BIN)
-       cd $(SRC) ; GOPATH=$(GOPATH) $(GO) build -ldflags "$(LDFLAGS)" \
+       cd $(SRC) ; GOPATH=$(GOPATH) $(GO) build \
+               -o $(BIN)/$$(basename $@) \
+               -ldflags "$(LDFLAGS)" \
                $(MOD)/cmd/$$(basename $@)
-       mv $(SRC)/$$(basename $@) $(BIN)
 
 test:
        cd $(SRC) ; GOPATH=$(GOPATH) $(GO) test -failfast $(MOD)/...