* [PATCH 1/2] xfstests: a few fixes to Makefile
@ 2011-03-04 19:37 Alex Elder
2011-03-10 17:25 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Alex Elder @ 2011-03-04 19:37 UTC (permalink / raw)
To: xfs
A few changes to the Makefile:
- Separate the rules for "configure" and "include/builddefs" into
two parts, each of which generate one of the files
- Get rid of the rule for include/config.h, and group it with the
one for include/builddefs (the same command creates both files)
- Use the $(Q) convention in a few missed spots
- Stop a DMAPI-only comment from getting echoed on default build
Signed-off-by: Alex Elder <aelder@sgi.com>
---
Makefile | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
Index: b/Makefile
===================================================================
--- a/Makefile
+++ b/Makefile
@@ -44,9 +44,9 @@ ifeq ($(HAVE_BUILDDEFS), no)
$(Q)$(MAKE) $(MAKEOPTS) $@
else
$(Q)$(MAKE) $(MAKEOPTS) $(SUBDIRS)
+ifeq ($(HAVE_DMAPI), true)
# automake doesn't always support "default" target
# so do dmapi make explicitly with "all"
-ifeq ($(HAVE_DMAPI), true)
$(Q)$(MAKE) $(MAKEOPTS) -C $(TOPDIR)/dmapi all
endif
endif
@@ -60,22 +60,19 @@ else
clean: # if configure hasn't run, nothing to clean
endif
-configure include/builddefs:
+configure: configure.in
autoheader
autoconf
+
+include/builddefs include/config.h: configure
./configure \
--libexecdir=/usr/lib \
--enable-lib64=yes
-include/config.h: include/builddefs
-## Recover from the removal of $@
- @if test -f $@; then :; else \
- rm -f include/builddefs; \
- $(MAKE) $(AM_MAKEFLAGS) include/builddefs; \
- fi
-
+ifeq ($(HAVE_DMAPI), true)
$(DMAPI_MAKEFILE):
- cd $(TOPDIR)/dmapi/ ; ./configure
+ $(Q)cd $(TOPDIR)/dmapi && ./configure
+endif
aclocal.m4::
aclocal --acdir=`pwd`/m4 --output=$@
@@ -97,5 +94,5 @@ install-dev install-lib:
$(MAKE) $(MAKEOPTS) -C $* install
realclean distclean: clean
- rm -f $(LDIRT) $(CONFIGURE)
- rm -rf autom4te.cache Logs
+ $(Q)rm -f $(LDIRT) $(CONFIGURE)
+ $(Q)rm -rf autom4te.cache Logs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] xfstests: a few fixes to Makefile
2011-03-04 19:37 [PATCH 1/2] xfstests: a few fixes to Makefile Alex Elder
@ 2011-03-10 17:25 ` Christoph Hellwig
2011-03-10 22:16 ` Alex Elder
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2011-03-10 17:25 UTC (permalink / raw)
To: Alex Elder; +Cc: xfs
> +ifeq ($(HAVE_DMAPI), true)
> # automake doesn't always support "default" target
> # so do dmapi make explicitly with "all"
> -ifeq ($(HAVE_DMAPI), true)
What about moving the # signs to the first line so that it never gets
echoed at all?
Otherwise looks good to me.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] xfstests: a few fixes to Makefile
2011-03-10 17:25 ` Christoph Hellwig
@ 2011-03-10 22:16 ` Alex Elder
2011-03-11 10:10 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Alex Elder @ 2011-03-10 22:16 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
On Thu, 2011-03-10 at 12:25 -0500, Christoph Hellwig wrote:
> > +ifeq ($(HAVE_DMAPI), true)
> > # automake doesn't always support "default" target
> > # so do dmapi make explicitly with "all"
> > -ifeq ($(HAVE_DMAPI), true)
>
> What about moving the # signs to the first line so that it never gets
> echoed at all?
>
> Otherwise looks good to me.
That would work too. A later patch makes the
whole thing go away though, so it's sort of moot.
(And I already committed it after some discussion
with Eric yesterday...)
-Alex
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] xfstests: a few fixes to Makefile
2011-03-10 22:16 ` Alex Elder
@ 2011-03-11 10:10 ` Christoph Hellwig
0 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2011-03-11 10:10 UTC (permalink / raw)
To: Alex Elder; +Cc: Christoph Hellwig, xfs
On Thu, Mar 10, 2011 at 04:16:06PM -0600, Alex Elder wrote:
> On Thu, 2011-03-10 at 12:25 -0500, Christoph Hellwig wrote:
> > > +ifeq ($(HAVE_DMAPI), true)
> > > # automake doesn't always support "default" target
> > > # so do dmapi make explicitly with "all"
> > > -ifeq ($(HAVE_DMAPI), true)
> >
> > What about moving the # signs to the first line so that it never gets
> > echoed at all?
> >
> > Otherwise looks good to me.
>
> That would work too. A later patch makes the
> whole thing go away though, so it's sort of moot.
> (And I already committed it after some discussion
> with Eric yesterday...)
Ok.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-11 10:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-04 19:37 [PATCH 1/2] xfstests: a few fixes to Makefile Alex Elder
2011-03-10 17:25 ` Christoph Hellwig
2011-03-10 22:16 ` Alex Elder
2011-03-11 10:10 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox