From ad8b4dac1ad3500904747a090de2d99f2f774156 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Wed, 15 Feb 2023 09:40:15 -0500 Subject: [Documentation] Add Makefile for those with bad memories For those (like me) with bad memories, it is easier to remember `make` commands than `go build` commands. So, there is now a Makefile with helpful build and test targets. --- Makefile | 10 ++++++++++ README.md | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f2df1c5 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +all: build test +build: + go build networkQuality.go +test: + go test ./timeoutat/ ./traceable/ ./ms/ ./utilities/ +golines: + find . -name '*.go' -exec ~/go/bin/golines -w {} \; +clean: + go clean -testcache + rm -f *.o core diff --git a/README.md b/README.md index 4605b4e..d99f2ac 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ $ go build networkQuality.go That will create an executable in `${RSPVNSS_SOURCE_DIR}` named `networkQuality`. +> As a bonus, there are now `make`able targets (`all`, `build`, `test`, `clean`) in case that's easier to remember! + ### Run From `${RSPVNSS_SOURCE_DIR}`, running the client is straightforward. Simply -- cgit v1.2.3