summaryrefslogtreecommitdiff
path: root/Makefile
blob: ff38c26d62b9d894b720918643a42d38e3b83955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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