summaryrefslogtreecommitdiff
path: root/Makefile
blob: 05a85e37b4c98c505ccf422fb4aac3595e1f3929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PREFIX ?= /usr/local

basedir = ${DESTDIR}${PREFIX}

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

install: build/efa.1
	mkdir -p ${basedir}/bin ${basedir}/share/man/man1
	cp bin/efa ${basedir}/bin/efa
	cp build/efa.1 ${basedir}/share/man/man1/efa.1
	chmod 755 ${basedir}/bin/efa
	chmod 644 ${basedir}/share/man/man1/efa.1

uninstall:
	rm -f ${basedir}/bin/efa
	rm -f ${basedir}/share/man/man1/efa.1

test:
	@prove test

clean:
	rm -rf build

.PHONY: install uninstall test clean