summaryrefslogtreecommitdiff
path: root/Makefile
blob: 89880b41d4fcd761bc29c53cda79c642f25d68ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
prefix ?= /usr/local

build/envstore.1: bin/envstore
	mkdir -p build
	pod2man $< > $@

install: build/envstore.1
	install -m 755 -D bin/envstore $(prefix)/bin/envstore
	install -m 644 -D build/envstore.1 $(prefix)/share/man/man1/envstore.1

uninstall:
	$(RM) $(prefix)/bin/envstore
	$(RM) $(prefix)/share/man/man1/envstore

clean:
	$(RM) -r build

.PHONY: install uninstall clean