basicwindow/Makefile

36 lines
855 B
Makefile
Raw Permalink Normal View History

VERSION = $(shell git describe --tags)
2024-11-16 00:05:55 -06:00
BUILDTIME = $(shell date +%Y.%m.%d)
2025-02-08 18:04:02 -06:00
all: build gocui
2024-01-16 16:37:43 -06:00
2025-02-08 18:02:50 -06:00
build: goimports vet
GO111MODULE=off go build -v -x \
2024-11-16 00:05:55 -06:00
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
verbose:
GO111MODULE=off go build -v -x \
2024-11-16 00:05:55 -06:00
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
install:
GO111MODULE=off go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
clean:
2025-02-08 18:02:50 -06:00
-rm -f basicwindow go.*
2024-11-16 00:05:55 -06:00
# embed the toolkit plugins in the binary
embed:
-rm resources/*.so
touch resources/blank.so
2025-02-08 18:02:50 -06:00
cp -a ~/go/src/go.wit.com/toolkits/*/*.so resources/
gocui:
2024-11-16 00:05:55 -06:00
./basicwindow --gui gocui
goimports:
goimports -w *.go
2024-01-16 16:37:43 -06:00
2025-02-08 18:02:50 -06:00
vet:
@GO111MODULE=off go vet
@echo this go binary package builds okay