BUILD: more makefile updates
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
9105a180c6
commit
2bcf3f9f55
13
Makefile
13
Makefile
|
@ -10,6 +10,7 @@ VERSION = $(shell cat resources/VERSION)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
# shell things
|
# shell things
|
||||||
|
cd example-nohup; go install # minimum golang 'cmd'
|
||||||
cd example-expect; go install # traditional 'expect' shell automation
|
cd example-expect; go install # traditional 'expect' shell automation
|
||||||
cd example-shell; go install # a tty wrapper
|
cd example-shell; go install # a tty wrapper
|
||||||
cd example-gocui-mouse; go install # mouse interaction
|
cd example-gocui-mouse; go install # mouse interaction
|
||||||
|
@ -24,9 +25,21 @@ build:
|
||||||
cd example-ui-radiobutton; go install # slidebars, lists, radio buttons
|
cd example-ui-radiobutton; go install # slidebars, lists, radio buttons
|
||||||
cd example-ui-table; go install # spreadsheet
|
cd example-ui-table; go install # spreadsheet
|
||||||
|
|
||||||
|
# misc
|
||||||
|
cd example-lookupAAAA; go install # nslookup
|
||||||
|
|
||||||
# golang things
|
# golang things
|
||||||
cd example-pprof; go install # dump out go process internals
|
cd example-pprof; go install # dump out go process internals
|
||||||
|
|
||||||
|
prep:
|
||||||
|
make -C example-nohup prep
|
||||||
|
|
||||||
|
sub-make:
|
||||||
|
# shell things
|
||||||
|
make -C example-expect # traditional 'expect' shell automation
|
||||||
|
make -C example-shell # a tty wrapper
|
||||||
|
make -C example-gocui-mouse # mouse interaction
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
go build -ldflags "-X main.GITCOMMIT=${GITCOMMIT} -X main.GOVERSION='${GOVERSION}' -X main.BUILDTIME='${BUILDTIME}' -X main.VERSION=${VERSION}"
|
go build -ldflags "-X main.GITCOMMIT=${GITCOMMIT} -X main.GOVERSION='${GOVERSION}' -X main.BUILDTIME='${BUILDTIME}' -X main.VERSION=${VERSION}"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
all:
|
||||||
|
go install
|
||||||
|
|
||||||
|
prep:
|
||||||
|
go get -v -t -u .
|
|
@ -1,3 +1,3 @@
|
||||||
run:
|
all:
|
||||||
go build
|
go get -v -t -u .
|
||||||
./example-multiple-windows
|
go install
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
run:
|
all:
|
||||||
go run *.go
|
go get -v -t -u .
|
||||||
|
go install
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
run:
|
all:
|
||||||
go run *.go
|
go get -v -t -u .
|
||||||
|
go install
|
||||||
|
|
Loading…
Reference in New Issue