]> Cypherpunks.ru repositories - govpn.git/commitdiff
Replace src/Makefile with git submodules
authorSergey Matveev <stargrave@stargrave.org>
Fri, 7 Aug 2015 21:05:20 +0000 (00:05 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 7 Aug 2015 21:20:27 +0000 (00:20 +0300)
Self-written Makefile did exactly the same task as git-submodule,
so replace with this already got tool for simplicity.

Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
.gitmodules [new file with mode: 0644]
common.mk
doc/sources.texi
src/.gitignore [deleted file]
src/Makefile [deleted file]
src/github.com/agl/ed25519 [new submodule]
src/github.com/bigeagle/water [new submodule]
src/golang.org/x/crypto [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..f2d6ae4
--- /dev/null
@@ -0,0 +1,9 @@
+[submodule "src/github.com/bigeagle/water"]
+       path = src/github.com/bigeagle/water
+       url = https://github.com/bigeagle/water.git
+[submodule "src/github.com/agl/ed25519"]
+       path = src/github.com/agl/ed25519
+       url = https://github.com/agl/ed25519.git
+[submodule "src/golang.org/x/crypto"]
+       path = src/golang.org/x/crypto
+       url = https://go.googlesource.com/crypto
index b2f01fe169577de58d7bfeae0ce8ab87d68e3f24..874490b0cd865c9fb14750ae7522290a7b898f06 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -7,16 +7,13 @@ DOCDIR = $(DESTDIR)$(PREFIX)/share/doc/govpn
 
 all: govpn-client govpn-server govpn-verifier
 
-depends:
-       $(MAKE) -C src
-
-govpn-client: depends
+govpn-client:
        GOPATH=$(GOPATH) go build -ldflags "$(LDFLAGS)" govpn/cmd/govpn-client
 
-govpn-server: depends
+govpn-server:
        GOPATH=$(GOPATH) go build -ldflags "$(LDFLAGS)" govpn/cmd/govpn-server
 
-govpn-verifier: depends
+govpn-verifier:
        GOPATH=$(GOPATH) go build -ldflags "$(LDFLAGS)" govpn/cmd/govpn-verifier
 
 bench:
index 26bcd72e2907bc3049895204f961ac2c9fb5cd10..504b6bf45f7f520cf63e0b38e547ec8a1f4d2de5 100644 (file)
@@ -3,12 +3,17 @@
 
 Development source contains the latest version of the code. It may be
 buggy. It does not contain compiled documentation and dependent
-libraries source code. Because of that it is not recommended for porters.
+libraries source code. Because of that it is not recommended for
+porters: use prepared tarballs!
 
-You can obtain it by cloning Git repository:
-@code{git clone git://git.cypherpunks.ru/govpn.git}.
-@code{src} directory has makefile that will download necessary dependent
-library versions.
+You can obtain it by cloning Git repository and fetching dependent
+libraries source code as git submodules:
+
+@example
+% git clone git://git.cypherpunks.ru/govpn.git govpn
+% cd govpn
+% git submodule update --init
+@end example
 
 Also there is mirror of dependent libraries for safety if their native
 repositories will be unavailable (they are seldom updated):
@@ -18,4 +23,5 @@ repositories will be unavailable (they are seldom updated):
 @item @code{govpn} @tab @url{https://github.com/stargrave/govpn.git}
 @item @code{golang.org/x/crypto} @tab @url{git://git.cypherpunks.ru/crypto.git}
 @item @code{github.com/agl/ed25519} @tab @url{git://git.cypherpunks.ru/ed25519.git}
+@item @code{github.com/bigeagle/water} @tab @url{git://git.cypherpunks.ru/water.git}
 @end multitable
diff --git a/src/.gitignore b/src/.gitignore
deleted file mode 100644 (file)
index 1fb92d9..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-github.com
-golang.org
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644 (file)
index 4fd0c40..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-GIT ?= git
-
-all: golang.org/x/crypto github.com/agl/ed25519 github.com/bigeagle/water
-
-github.com/bigeagle/water:
-       mkdir -p github.com/bigeagle
-       $(GIT) clone https://github.com/bigeagle/water.git github.com/bigeagle/water
-       cd github.com/bigeagle/water && $(GIT) checkout --force 36aebfeb35da4f1f6a975726716c6fc563c5c495
-
-github.com/agl/ed25519:
-       mkdir -p github.com/agl
-       $(GIT) clone https://github.com/agl/ed25519.git github.com/agl/ed25519
-       cd github.com/agl/ed25519 && $(GIT) checkout --force d2b94fd789ea21d12fac1a4443dd3a3f79cda72c
-
-golang.org/x/crypto:
-       mkdir -p golang.org/x
-       $(GIT) clone https://go.googlesource.com/crypto golang.org/x/crypto
-       cd golang.org/x/crypto && $(GIT) checkout --force 2f3083f6163ef51179ad42ed523a18c9a1141467
diff --git a/src/github.com/agl/ed25519 b/src/github.com/agl/ed25519
new file mode 160000 (submodule)
index 0000000..d2b94fd
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit d2b94fd789ea21d12fac1a4443dd3a3f79cda72c
diff --git a/src/github.com/bigeagle/water b/src/github.com/bigeagle/water
new file mode 160000 (submodule)
index 0000000..36aebfe
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 36aebfeb35da4f1f6a975726716c6fc563c5c495
diff --git a/src/golang.org/x/crypto b/src/golang.org/x/crypto
new file mode 160000 (submodule)
index 0000000..2f3083f
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 2f3083f6163ef51179ad42ed523a18c9a1141467