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

default: build/tibtoa.1

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

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

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

clean:
	rm -rf build

.PHONY: install uninstall clean