fix build
This commit is contained in:
parent
161f3934ce
commit
db990457e5
30
Makefile
30
Makefile
|
@ -1,20 +1,31 @@
|
||||||
VERSION = $(shell git describe --tags)
|
VERSION = $(shell git describe --tags)
|
||||||
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
./gadgetwindow
|
./gadgetwindow
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
GO111MODULE=off go build \
|
||||||
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||||
|
|
||||||
|
verbose:
|
||||||
|
GO111MODULE=off go build -v -x \
|
||||||
|
-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:
|
||||||
-rm -f gadgetwindow
|
-rm -f gadgetwindow
|
||||||
-rm resources/*.so
|
-rm resources/*.so
|
||||||
touch resources/blank.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}"
|
|
||||||
|
|
||||||
install:
|
# embed the toolkit plugins in the binary
|
||||||
GO111MODULE=off go install -v -x \
|
embed:
|
||||||
-ldflags "-X main.VERSION=${VERSION}"
|
-rm resources/*.so
|
||||||
./gadgetwindow
|
touch resources/blank.so
|
||||||
|
cp -a ~/go/src/go.wit.com/toolkits/*.so resources/
|
||||||
|
|
||||||
nocui: build
|
nocui: build
|
||||||
reset
|
reset
|
||||||
|
@ -23,10 +34,7 @@ nocui: build
|
||||||
gocui: build
|
gocui: build
|
||||||
reset
|
reset
|
||||||
echo "redirecting STDOUT & STDERR to /tmp/gadgetwindow.out"
|
echo "redirecting STDOUT & STDERR to /tmp/gadgetwindow.out"
|
||||||
./gadgetwindow --gui gocui >/tmp/gadgetwindow.out 2>&1
|
./gadgetwindow --gui gocui
|
||||||
|
|
||||||
log:
|
|
||||||
tail -f /tmp/gadgetwindow.out*
|
|
||||||
|
|
||||||
debugger: build
|
debugger: build
|
||||||
reset
|
reset
|
||||||
|
|
Loading…
Reference in New Issue