summaryrefslogtreecommitdiff
path: root/Makefile
blob: 550126da246de3d39bd6b6ab68a957c5694e874d (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
27
PREFIX ?= /usr/local

main_dir = ${DESTDIR}${PREFIX}

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

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


test:
	@prove

uninstall:
	rm -f ${main_dir}/bin/icli
	rm -f ${main_dir}/share/man/man1/icli.1

clean:
	rm -rf build

.PHONY: clean install test uninstall