From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E293EC432C0 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 BBD2D21775 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 <