]> Cypherpunks repositories - nncp.git/commitdiff
Do not hardcode bin directory
authorSergey Matveev <stargrave@stargrave.org>
Tue, 14 May 2019 10:40:13 +0000 (13:40 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 14 May 2019 10:40:13 +0000 (13:40 +0300)
common.mk

index 6c887a56e2ecf7165f66af0fa7df60646aabee41..8a06f9b79702d5fdcb4423a9ee14360c5cddc16a 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -52,7 +52,7 @@ test:
        cd $(SRC) ; GOPATH=$(GOPATH) $(GO) test $(BUILDMOD) -failfast cypherpunks.ru/nncp/...
 
 clean:
-       rm -rf bin
+       rm -rf $(BIN)
 
 .PHONY: doc
 
@@ -61,7 +61,7 @@ doc:
 
 install: all doc
        mkdir -p $(BINDIR)
-       (cd bin ; cp -f $(ALL) $(BINDIR))
+       (cd $(BIN) ; cp -f $(ALL) $(BINDIR))
        for e in $(ALL) ; do chmod 755 $(BINDIR)/$$e ; done
        mkdir -p $(INFODIR)
        cp -f doc/nncp.info $(INFODIR)