diff --git a/Makefile b/Makefile index 9e2769e..e35fc5f 100644 --- a/Makefile +++ b/Makefile @@ -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}" diff --git a/example-nohup/Makefile b/example-nohup/Makefile new file mode 100644 index 0000000..2ed1d98 --- /dev/null +++ b/example-nohup/Makefile @@ -0,0 +1,5 @@ +all: + go install + +prep: + go get -v -t -u . diff --git a/example-ui-multiple-windows/Makefile b/example-ui-multiple-windows/Makefile index c9da29f..f1f692a 100644 --- a/example-ui-multiple-windows/Makefile +++ b/example-ui-multiple-windows/Makefile @@ -1,3 +1,3 @@ -run: - go build - ./example-multiple-windows +all: + go get -v -t -u . + go install diff --git a/example-ui-radiobutton/Makefile b/example-ui-radiobutton/Makefile index e07773d..f1f692a 100644 --- a/example-ui-radiobutton/Makefile +++ b/example-ui-radiobutton/Makefile @@ -1,2 +1,3 @@ -run: - go run *.go +all: + go get -v -t -u . + go install diff --git a/example-ui-splash/Makefile b/example-ui-splash/Makefile index e07773d..f1f692a 100644 --- a/example-ui-splash/Makefile +++ b/example-ui-splash/Makefile @@ -1,2 +1,3 @@ -run: - go run *.go +all: + go get -v -t -u . + go install