~egtann/sum

ref: 9074303ad75866b855e30d86f3a7ef1a38173063 sum/Makefile -rw-r--r-- 410 bytes
9074303a — Evan Tann rename project from sf to sum 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
BINDIR?=/usr/local/bin
MANDIR?=/usr/local/man

sum:
	go build ./cmd/sum

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

clean:
	rm -f sum
.PHONY: clean

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