]> Cypherpunks.ru repositories - gohpenc.git/blobdiff - Makefile
Use to git module, instead of git submodule
[gohpenc.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..95f8740
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+GO ?= go
+GOPATH ?= $(PWD)/gopath
+SRC := $(PWD)/src/cypherpunks.ru/gohpenc
+BIN := $(PWD)/bin
+
+all: $(BIN)/gohpenc
+
+$(BIN):
+       mkdir -p $(BIN)
+
+$(BIN)/gohpenc: $(BIN)
+       cd $(SRC) ; GOPATH=$(GOPATH) $(GO) build
+       mv $(SRC)/gohpenc bin
+
+clean:
+       rm -rf $(BIN)