From patchwork Thu Nov 28 10:26:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 11265697 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D2DF0930 for ; Thu, 28 Nov 2019 10:26:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB97A21774 for ; Thu, 28 Nov 2019 10:26:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726252AbfK1K0L (ORCPT ); Thu, 28 Nov 2019 05:26:11 -0500 Received: from mx2.suse.de ([195.135.220.15]:50666 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726191AbfK1K0K (ORCPT ); Thu, 28 Nov 2019 05:26:10 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4246EB25B; Thu, 28 Nov 2019 10:26:09 +0000 (UTC) From: Johannes Thumshirn To: Jens Axboe Cc: Linux Block Layer Mailinglist , Johannes Thumshirn Subject: [PATCH liburing] liburing: create an installation target for tests Date: Thu, 28 Nov 2019 11:26:06 +0100 Message-Id: <20191128102606.26353-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Create an installation target for liburing's regressen test suite. Signed-off-by: Johannes Thumshirn --- Makefile | 3 +++ configure | 8 ++++++++ test/Makefile | 10 ++++++++++ 3 files changed, 21 insertions(+) diff --git a/Makefile b/Makefile index 9e132183620a..89b3f1d50135 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,9 @@ install: $(NAME).pc $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man2 $(INSTALL) -m 644 man/*.2 $(DESTDIR)$(mandir)/man2 +install-tests: + @$(MAKE) -C test install prefix=$(DESTDIR)$(prefix) datadir=$(DESTDIR)$(datadir) + clean: @rm -f config-host.mak config-host.h cscope.out $(NAME).pc @$(MAKE) -C src clean diff --git a/configure b/configure index 81e4bccab350..babbae1fafc2 100755 --- a/configure +++ b/configure @@ -24,6 +24,8 @@ for opt do ;; --mandir=*) mandir="$optarg" ;; + --datadir=*) datadir="$optarg" + ;; *) echo "ERROR: unkown option $opt" echo "Try '$0 --help' for more information" @@ -44,6 +46,10 @@ fi if test -z "$mandir"; then mandir="$prefix/man" fi +if test -z "$datadir"; then + datadir="$prefix/share" +fi + if test "$show_help" = "yes"; then cat <