reorder makefile rules

This commit is contained in:
Jeff Carr 2024-02-22 15:28:08 -06:00
parent 303c603f36
commit db6ede257c
1 changed files with 9 additions and 7 deletions

View File

@ -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