pixelgl/Makefile

35 lines
723 B
Makefile
Raw Normal View History

all: plugin
2024-12-04 03:15:42 -06:00
ldd pixelgl.so
plugin:
go build -v -x -buildmode=plugin -o pixelgl.so
2024-12-04 03:15:42 -06:00
install:
go build -v -x -buildmode=plugin -o pixelgl.so
2024-12-05 12:38:07 -06:00
full-plugin:
GO111MODULE=off go build -v -x -buildmode=plugin -o pixelgl.so
full-install:
GO111MODULE=off go build -v -x -buildmode=plugin -o pixelgl.so
standalone:
go build -v -x
check-git-clean:
@git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
# 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