BUILD: more makefile updates

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2021-09-01 13:46:08 -05:00
parent 9105a180c6
commit 2bcf3f9f55
5 changed files with 27 additions and 7 deletions

View File

@ -10,6 +10,7 @@ VERSION = $(shell cat resources/VERSION)
build:
# shell things
cd example-nohup; go install # minimum golang 'cmd'
cd example-expect; go install # traditional 'expect' shell automation
cd example-shell; go install # a tty wrapper
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-table; go install # spreadsheet
# misc
cd example-lookupAAAA; go install # nslookup
# golang things
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:
go build -ldflags "-X main.GITCOMMIT=${GITCOMMIT} -X main.GOVERSION='${GOVERSION}' -X main.BUILDTIME='${BUILDTIME}' -X main.VERSION=${VERSION}"

5
example-nohup/Makefile Normal file
View File

@ -0,0 +1,5 @@
all:
go install
prep:
go get -v -t -u .

View File

@ -1,3 +1,3 @@
run:
go build
./example-multiple-windows
all:
go get -v -t -u .
go install

View File

@ -1,2 +1,3 @@
run:
go run *.go
all:
go get -v -t -u .
go install

View File

@ -1,2 +1,3 @@
run:
go run *.go
all:
go get -v -t -u .
go install