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 6a3f85bcfbe5cd3ae830dcbe1f30a3850529f332..8d8802d6ab7b34d0810ef91b0e0986e7007eba06 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)