From cddced4bc8e963c9e5a2af17c8e024a52bbc3c90 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 19 Feb 2024 08:10:21 -0600 Subject: compiles and runs. maybe it's a plugin? maybe not Signed-off-by: Jeff Carr --- Makefile | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3