summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 22 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index e9f03b9..afde483 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,26 @@
-# go get -u github.com/faiface/pixel-examples
-# cd ~/go/src/github.com/faiface/pixel-examples/community/seascape-shader
+all: plugin
+ ldd ../pixelgl.so
-all:
- GO111MODULE=off go build
- ./seascape-shader
+plugin:
+ GO111MODULE=off go build -v -x -buildmode=plugin -o ../pixelgl.so
-push:
- git pull
- git add --all
- -git commit -a -s
- git push
+standalone:
+ GO111MODULE=off go install -v -x
+ pixelgl
-update:
- git pull
+check-git-clean:
+ @git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
-diff:
- git diff
+# Test the README.md & doc.go file
+# this runs pkgsite, the binary that does dev.go.dev
+# go install golang.org/x/pkgsite/cmd/pkgsite@latest
+pkgsite:
+ pkgsite
+
+goimports:
+ goimports -w *.go
+
+redomod:
+ rm -f go.*
+ GO111MODULE= go mod init
+ GO111MODULE= go mod tidy