standard build rules
This commit is contained in:
parent
85f3a08238
commit
b5fe1eb8ff
5
Makefile
5
Makefile
|
@ -8,10 +8,10 @@ gocui.so:
|
||||||
GO111MODULE=off go build -v -work -buildmode=plugin -o gocui.so \
|
GO111MODULE=off go build -v -work -buildmode=plugin -o gocui.so \
|
||||||
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||||
|
|
||||||
install:
|
install: clean
|
||||||
rm -f gocui.so
|
|
||||||
go build -buildmode=plugin -o ~/go/lib/gocui-${VERSION}.so \
|
go build -buildmode=plugin -o ~/go/lib/gocui-${VERSION}.so \
|
||||||
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||||
|
cd ~/go/lib && ln -f -s gocui-${VERSION}.so gocui.so
|
||||||
|
|
||||||
# for testing custom golang
|
# for testing custom golang
|
||||||
custom:
|
custom:
|
||||||
|
@ -20,6 +20,7 @@ custom:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f gocui gocui.so
|
rm -f gocui gocui.so
|
||||||
|
|
||||||
# Test the README.md & doc.go file
|
# Test the README.md & doc.go file
|
||||||
# this runs pkgsite, the binary that does dev.go.dev
|
# this runs pkgsite, the binary that does dev.go.dev
|
||||||
# go install golang.org/x/pkgsite/cmd/pkgsite@latest
|
# go install golang.org/x/pkgsite/cmd/pkgsite@latest
|
||||||
|
|
Loading…
Reference in New Issue