From 61fe5208e6e4cd388d539b3a6c6ed91128f64bc5 Mon Sep 17 00:00:00 2001 From: Anna Rose Wiggins Date: Fri, 1 Aug 2025 15:15:25 -0400 Subject: [PATCH] On second thought, makefile turns out to be a poor fit for golang. --- Makefile | 25 ------------------------- readme.md | 10 +++++----- 2 files changed, 5 insertions(+), 30 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 6980ef2..0000000 --- a/Makefile +++ /dev/null @@ -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/ \ No newline at end of file diff --git a/readme.md b/readme.md index eb432f6..164e2ac 100644 --- a/readme.md +++ b/readme.md @@ -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/ ```