summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..64612c4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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