From 53a78fe19b96ff3f47a134bd5fdbb13983b28021 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 5 Aug 2019 10:57:33 +0200 Subject: go.mod: operate like a normal go module --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-59-g8ed1b