keytable: Allow override of manpage installation directory
authorRobby Workman <rworkman@slackware.com>
Tue, 12 Apr 2011 14:26:57 +0000 (11:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 4 May 2011 01:22:42 +0000 (22:22 -0300)
This creates MANDIR in Make.rules and keeps the preexisting
default of $(PREFIX)/share/man, but allows packagers to easily
override via e.g. "make MANDIR=/usr/man"

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Make.rules
utils/keytable/Makefile

index 0bb2eb8..875828a 100644 (file)
@@ -11,6 +11,7 @@ PREFIX = /usr/local
 LIBDIR = $(PREFIX)/lib
 # subdir below LIBDIR in which to install the libv4lx libc wrappers
 LIBSUBDIR = libv4l
+MANDIR = $(PREFIX)/share/man
 
 # These ones should not be overriden from the cmdline
 
index 29a6ac4..e093280 100644 (file)
@@ -39,7 +39,7 @@ install: $(TARGETS)
        install -m 644 -p rc_keymaps/* $(DESTDIR)/etc/rc_keymaps
        install -m 755 -d $(DESTDIR)/lib/udev/rules.d
        install -m 644 -p 70-infrared.rules $(DESTDIR)/lib/udev/rules.d
-       install -m 755 -d $(DESTDIR)$(PREFIX)/share/man/man1
-       install -m 644 -p ir-keytable.1 $(DESTDIR)$(PREFIX)/share/man/man1
+       install -m 755 -d $(DESTDIR)$(MANDIR)/man1
+       install -m 644 -p ir-keytable.1 $(DESTDIR)$(MANDIR)/man1
 
 include ../../Make.rules