From db6ede257cf91c98643f4feab49016313977b32a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 22 Feb 2024 15:28:08 -0600 Subject: [PATCH] reorder makefile rules --- Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index ca9ebfa..9eecce1 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,17 @@ -# to build by hand export GO111MODULE=off +# this makefile assumes you want to build in this directory +# and are developing so it sets export GO111MODULE=off all: build reset ./autotypist +build: + echo "build it!" + @# copy the toolkits into the binary during debugging + -rm resources/*.so + cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ + GO111MODULE=off go build -v -x + only-me: build reset ./autotypist --only-me @@ -21,12 +29,6 @@ gocui: build reset ./autotypist --gui gocui >/tmp/autotypist.log 2>&1 -build: - echo "build it!" - -rm resources/*.so - cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ - GO111MODULE=off go build -v -x - install: rm -f ~/go/src/go.wit.com/toolkits/*.so go install -v -x