diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-17 21:42:49 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-17 21:42:49 +0200 |
commit | 1def4dfac5782f8eda247ab897e7c362a5d3b8dd (patch) | |
tree | 63a8486def7ad6d3a1b2ffb73b67477355cb8499 | |
parent | 000ea44c3614debaf8cf9710c2a0a891b66bed18 (diff) |
Added a makefile
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84c048a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/build/ 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 |