~egtann/sum

ref: 2660c9cffee148e30de81b40d1e3c8561c5cd027 sum/Makefile -rw-r--r-- 389 bytes
2660c9cf — Evan Tann remove unused make clean command 4 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