xfs
[Top] [All Lists]

review: xfstests/Makefile for dmapi

To: xfs-dev <xfs-dev@xxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx>
Subject: review: xfstests/Makefile for dmapi
From: Timothy Shimmin <tes@xxxxxxx>
Date: Wed, 30 Apr 2008 16:31:35 +1000
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)
Hi,

In some tests I found that Automake 1.9.1 output a "default" target
whereas Automake 1.9.6 did not produce a "default" target - in each
case they used the "all" target.
So change the default Make to build dmapi with the "all" target
instead of using SUBDIRS_MAKERULE on default for it.
The SUBDIRS_MAKERULE in xfstests only seems to be used for the
default target.

--Tim

diff --git a/xfstests/Makefile b/xfstests/Makefile
index 99509ff..0a0fc27 100644
--- a/xfstests/Makefile
+++ b/xfstests/Makefile
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2000-2006 Silicon Graphics, Inc.  All Rights Reserved.
+# Copyright (c) 2000-2008 Silicon Graphics, Inc.  All Rights Reserved.
 #

 TOPDIR = .
@@ -16,13 +16,16 @@ LSRCFILES = configure configure.in aclocal.m4 README VERSION
 LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
        check.log check.time

-SUBDIRS = include lib ltp src m4 dmapi
+SUBDIRS = include lib ltp src m4

 default: $(CONFIGURE) $(DMAPI_MAKEFILE) new remake check $(TESTS)
 ifeq ($(HAVE_BUILDDEFS), no)
        $(MAKE) $@
 else
        $(SUBDIRS_MAKERULE)
+       # automake doesn't always support "default" target
+       # so do dmapi make explicitly with "all"
+       cd $(TOPDIR)/dmapi; make all
 endif

 ifeq ($(HAVE_BUILDDEFS), yes)


<Prev in Thread] Current Thread [Next in Thread>
  • review: xfstests/Makefile for dmapi, Timothy Shimmin <=