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