summaryrefslogtreecommitdiff
path: root/nocui/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nocui/Makefile')
-rw-r--r--nocui/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/nocui/Makefile b/nocui/Makefile
index acbf437..15c7487 100644
--- a/nocui/Makefile
+++ b/nocui/Makefile
@@ -3,3 +3,14 @@ all: plugin
plugin:
GO111MODULE="off" go build -v -x -buildmode=plugin -o ../nocui.so
+
+cleanbuild:
+ go build -v -x -buildmode=plugin -o ../nocui.so
+
+check-git-clean:
+ @git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
+
+redomod:
+ rm -f go.*
+ GO111MODULE= go mod init
+ GO111MODULE= go mod tidy