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

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

install: build/envstore.1
	mkdir -p $(prefix)/bin $(prefix)/share/man/man1
	cp bin/envstore $(prefix)/bin/envstore
	cp build/envstore.1 $(prefix)/share/man/man1/envstore.1

uninstall:
	rm -f $(prefix)/bin/envstore
	rm -f $(prefix)/share/man/man1/envstore

clean:
	rm -rf build

.PHONY: install uninstall clean