VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d) all: clean goimports plugin #ldd fyne.so deps: sudo apt install libxxf86vm-dev libxxf86vm1 plugin: # LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ GO111MODULE=off go build -v -x -buildmode=plugin -o fyne.so GO111MODULE=off go build -v -x -buildmode=plugin -o fyne.so install: clean go build -v -buildmode=plugin -o ~/go/lib/fyne-${VERSION}.so \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" cd ~/go/lib && ln -f -s fyne-${VERSION}.so fyne.so clean: rm -f fyne fyne.so binary: go build -v -x non-plugin: go build -v -x ./fyne GO111-non-plugin: GO111MODULE=off go build -v -x ./fyne 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