liburing: install man pages on running 'make install'

Install man pages on running 'make install', so that
we can run commands like 'man 2 io_uring_setup'.

Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Shenghui Wang
2019-04-26 11:35:42 +08:00
committed by Jens Axboe
parent cb1e01af25
commit 6cd873cec6

View File

@@ -4,9 +4,11 @@ VERSION=$(shell awk '/Version:/ { print $$2 }' $(SPECFILE))
TAG = $(NAME)-$(VERSION) TAG = $(NAME)-$(VERSION)
RPMBUILD=$(shell `which rpmbuild >&/dev/null` && echo "rpmbuild" || echo "rpm") RPMBUILD=$(shell `which rpmbuild >&/dev/null` && echo "rpmbuild" || echo "rpm")
INSTALL=install
prefix=/usr prefix=/usr
includedir=$(prefix)/include includedir=$(prefix)/include
libdir=$(prefix)/lib libdir=$(prefix)/lib
mandir=$(prefix)/man
default: all default: all
@@ -33,6 +35,8 @@ endif
install: install:
@$(MAKE) -C src install prefix=$(DESTDIR)$(prefix) includedir=$(DESTDIR)$(includedir) libdir=$(DESTDIR)$(libdir) @$(MAKE) -C src install prefix=$(DESTDIR)$(prefix) includedir=$(DESTDIR)$(includedir) libdir=$(DESTDIR)$(libdir)
$(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man2
$(INSTALL) -m 644 man/*.2 $(DESTDIR)$(mandir)/man2
clean: clean:
@rm -f config-host.mak config-host.h cscope.out @rm -f config-host.mak config-host.h cscope.out