~egtann/sum

sum/Makefile -rw-r--r-- 389 bytes
7143d724 — Evan Tann add go1.15 workaround for broken google tls certs 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
GOPATH?=$(USER)/go
BINDIR?=$(GOPATH)/bin
MANDIR?=/usr/local/man

$(BINDIR)/sum:
	go get -u egt.run/sum/cmd/sum

install: $(BINDIR)/sum
	mkdir -m755 -p $(MANDIR)/man1 $(MANDIR)/man5
	cp man/man1/sum.1      $(MANDIR)/man1/
	cp man/man5/sum.conf.5 $(MANDIR)/man5/
.PHONY: install

uninstall:
	rm -f $(BINDIR)/sum
	rm -f $(MANDIR)/man1/sum.1
	rm -f $(MANDIR)/man5/sum.conf.5
.PHONY: uninstall