Install man page in /usr/share/man by default on OSX
authorJens Axboe <axboe@kernel.dk>
Wed, 8 Feb 2012 13:19:27 +0000 (14:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Feb 2012 13:19:27 +0000 (14:19 +0100)
Other packages apparently do this, and /usr/local/man isn't
in the default OSX man path.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile

index 6a3f85b..8d8802d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -84,7 +84,12 @@ endif
 INSTALL = install
 prefix = /usr/local
 bindir = $(prefix)/bin
+
+ifeq ($(UNAME), Darwin)
+mandir = /usr/share/man
+else
 mandir = $(prefix)/man
+endif
 
 all: .depend $(PROGS) $(SCRIPTS)