helloworld/Makefile

29 lines
605 B
Makefile
Raw Normal View History

VERSION = $(shell git describe --tags)
2024-01-16 16:37:43 -06:00
all:
2024-11-07 16:54:16 -06:00
-rm resources/*.so
touch resources/blank.so
-cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ # embed the toolkit plugins in the binary
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION}"
./helloworld
install:
GO111MODULE=off go install -v -x \
-ldflags "-X main.VERSION=${VERSION}"
2024-01-16 16:37:43 -06:00
./helloworld
gocui:
2024-02-16 11:40:19 -06:00
GO111MODULE=off go build -v -x
./helloworld --gui gocui >/tmp/helloworld.stdout 2>&1
goimports:
goimports -w *.go
2024-01-16 16:37:43 -06:00
redomod:
rm -f go.*
2024-01-18 19:10:31 -06:00
goimports -w *.go
2024-01-16 16:37:43 -06:00
GO111MODULE= go mod init
GO111MODULE= go mod tidy