summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0c35f00..b1ae8ec 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,18 @@
.PHONY: debian
+
run: build
# ./control-panel-dns >/tmp/witgui.log.stderr 2>&1
cp -f control-panel-dns ~/
./control-panel-dns --tmp-log
-redomod:
+check-git-clean:
+ @git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
+
+redomod: check-git-clean
rm -f go.*
- go mod init
- go mod tidy
+ GO111MODULE= go mod init
+ GO111MODULE= go mod tidy
install:
go install -v go.wit.com/control-panel-dns@latest