aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-05 10:57:33 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-05 20:12:19 +0200
commit53a78fe19b96ff3f47a134bd5fdbb13983b28021 (patch)
tree6407d33ef235eb03d635fe22dbd61b408221c18e /Makefile
parentversion: bump (diff)
downloadwireguard-windows-53a78fe19b96ff3f47a134bd5fdbb13983b28021.tar.xz
wireguard-windows-53a78fe19b96ff3f47a134bd5fdbb13983b28021.zip
go.mod: operate like a normal go module
Diffstat (limited to '')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ac09c5c9..2e170a72 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,15 @@ x86/wireguard.exe: resources_386.syso $(SOURCE_FILES)
$(VERSIONCHECK)
go build $(GOFLAGS) -o $@
-fmt: export CC := i686-w64-mingw32-gcc
+remaster: export CC := x86_64-w64-mingw32-gcc
+remaster: export GOARCH := amd64
+remaster:
+ rm -f go.sum go.mod
+ cp go.mod.master go.mod
+ go get
+
+fmt: export CC := x86_64-w64-mingw32-gcc
+fmt: export GOARCH := amd64
fmt:
go fmt ./...
@@ -48,4 +56,4 @@ deploy: amd64/wireguard.exe
clean:
rm -rf *.syso ui/icon/*.ico x86/ amd64/ .deps
-.PHONY: deploy clean fmt all
+.PHONY: deploy clean fmt remaster all