[PATCH] Install man pages as well with make install
authorJens Axboe <axboe@suse.de>
Sun, 30 Apr 2006 12:39:28 +0000 (14:39 +0200)
committerJens Axboe <axboe@suse.de>
Sun, 30 Apr 2006 12:39:28 +0000 (14:39 +0200)
Makefile

index 7890cf88a1f4b14e992039b59103b64bcdbe2265..5690727acd0062f9312ca9e091d66c1154d66a0f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 CC     = gcc
 CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 PROGS  = ktee ktee-net splice-cp splice-in splice-out splice-net splice-test4c splice-test4s vmsplice splice-bench
+MANS   = splice.2 tee.2 vmsplice.2
 
 all: depend $(PROGS)
 
@@ -16,10 +17,12 @@ clean:
 INSTALL = install
 prefix = /usr/local
 bindir = $(prefix)/bin
+mandir = $(prefix)/man
 
 install: $(PROGS)
        $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
        $(INSTALL) $(PROGS) $(DESTDIR)$(bindir)
+       $(INSTALL) $(MANS) $(DESTDIR)$(mandir)/man2
 
 ifneq ($(wildcard .depend),)
 include .depend