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

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

install: build/efa.1
	mkdir -p $(prefix)/bin $(prefix)/share/man/man1
	cp bin/efa $(prefix)/bin/efa
	cp build/efa.1 $(prefix)/share/man/man1/efa.1
	chmod 755 $(prefix)/bin/efa
	chmod 644 $(prefix)/share/man/man1/efa.1

uninstall:
	rm -f $(prefix)/bin/efa
	rm -f $(prefix)/share/man/man1/efa.1

clean:
	rm -rf build

.PHONY: install uninstall clean