On second thought, makefile turns out to be a poor fit for golang.

This commit is contained in:
Anna Rose Wiggins 2025-08-01 15:15:25 -04:00
parent 3bbffa9325
commit 61fe5208e6
2 changed files with 5 additions and 30 deletions

View file

@ -1,25 +0,0 @@
DESTDIR=/
PREFIX=${HOME}/
BINDIR=bin/
.PHONY: default build test install uninstall clean
default: build
build:
go build -o build/ ./...
test:
go test ./...
install:
mkdir -p ${DESTDIR}/${PREFIX}/${BINDIR}
cp build/evinfo ${DESTDIR}/${PREFIX}/${BINDIR}/
cp build/joyful ${DESTDIR}/${PREFIX}/${BINDIR}/
uninstall:
rm ${DESTDIR}/${PREFIX}/${BINDIR}/evinfo
rm ${DESTDIR}/${PREFIX}/${BINDIR}/joyful
clean:
rm -rf build/

View file

@ -67,15 +67,15 @@ cd joyful
Then, to build and install, run:
```
make
make install
go build -o build/ ./...
cp build/* ~/bin/
```
By default this will install into `~/bin`. If you want to install Joyful system-wide, you can instead do:
If you want to install Joyful system-wide, you can instead do:
```
make
sudo make PREFIX=/usr/local install
go build -o build/ ./...
sudo cp build/* /usr/local/bin/
```