From bc21244e8d49ac9ac900af1f648f9f8517a7c578 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 1 Sep 2021 20:07:52 -0500 Subject: [PATCH] BUILD: add rules to go get all the build deps Signed-off-by: Jeff Carr --- Makefile | 8 +++++++- README.md | 12 +++++++++++- example-expect/Makefile | 5 +++++ example-gocui-mouse/Makefile | 5 +++++ example-lookupAAAA/Makefile | 3 +++ example-nohup/Makefile | 2 +- example-shell/Makefile | 5 +++++ example-systray/Makefile | 3 +++ 8 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 example-expect/Makefile create mode 100644 example-gocui-mouse/Makefile create mode 100644 example-shell/Makefile diff --git a/Makefile b/Makefile index a414fff..b2e36bb 100644 --- a/Makefile +++ b/Makefile @@ -37,9 +37,15 @@ build: cd example-bench-fast-timer; go install # time golang channels cd example-bench-readWriteOps; go install # +# witgoget='-v -t' make prep +# witgoget='-v -t -u' make prep # to update prep: make -C example-nohup prep - make -C example-sshd prep + make -C example-expect prep + make -C example-shell prep + make -C example-gocui-mouse prep + make -C example-systray prep + make -C example-lookupAAAA prep sub-make: # shell things diff --git a/README.md b/README.md index 8cb52bb..5ea207c 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,21 @@ on Windows. This is an annoying limitation of how Windows works This means the Windows version of this GUI will probably always be sub-par verses the Linux and Macintosh versions -# build +# clone ``` go get -v -t -u git.wit.org/jcarr/golang-examples +``` + +# prep (download all the golang build dependancies) + +``` cd ~/go/src/git.wit.org/jcarr/golang-examples +witgoget='-v -t -u' make prep +``` + +# build +``` make build ``` diff --git a/example-expect/Makefile b/example-expect/Makefile new file mode 100644 index 0000000..d8e10bd --- /dev/null +++ b/example-expect/Makefile @@ -0,0 +1,5 @@ +all: + go install + +prep: + go get ${witgoget} . diff --git a/example-gocui-mouse/Makefile b/example-gocui-mouse/Makefile new file mode 100644 index 0000000..d8e10bd --- /dev/null +++ b/example-gocui-mouse/Makefile @@ -0,0 +1,5 @@ +all: + go install + +prep: + go get ${witgoget} . diff --git a/example-lookupAAAA/Makefile b/example-lookupAAAA/Makefile index aff2a07..c2efe19 100644 --- a/example-lookupAAAA/Makefile +++ b/example-lookupAAAA/Makefile @@ -1,3 +1,6 @@ run: go build ./example-lookupAAAA + +prep: + go get ${witgoget} . diff --git a/example-nohup/Makefile b/example-nohup/Makefile index 2ed1d98..d8e10bd 100644 --- a/example-nohup/Makefile +++ b/example-nohup/Makefile @@ -2,4 +2,4 @@ all: go install prep: - go get -v -t -u . + go get ${witgoget} . diff --git a/example-shell/Makefile b/example-shell/Makefile new file mode 100644 index 0000000..d8e10bd --- /dev/null +++ b/example-shell/Makefile @@ -0,0 +1,5 @@ +all: + go install + +prep: + go get ${witgoget} . diff --git a/example-systray/Makefile b/example-systray/Makefile index f113551..e1541f0 100644 --- a/example-systray/Makefile +++ b/example-systray/Makefile @@ -12,3 +12,6 @@ run: update: git pull go get -v -t -u . + +prep: + go get ${witgoget} .