From 106597566c8d9b901aa5cad75767340386e00cd8 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 6 Jun 2024 01:25:11 -0400 Subject: Build with makefile + raw mode --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ff38c26 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +# sixkcd - Fetch XKCD comics from the command line +# See LICENSE file for copyright and license details. + +PREFIX=/usr/local +MANPREFIX=$(PREFIX)/share/man + +all: + go mod download + go build -o sixkcd ./sixkcd.go + +install: all + mkdir -p $(PREFIX)/bin + mkdir -p $(MANPREFIX)/man1 + cp -f sixkcd $(PREFIX)/bin + cp -f sixkcd.1 $(MANPREFIX)/man1 + +clean: + rm -f ./sixkcd + +uninstall: + rm -f $(PREFIX)/bin/sixkcd + rm -f $(MANPREFIX)/man1/sixkcd.1 + +.PHONY: all install clean uninstall help -- cgit v1.2.3