From: Alex Elder <aelder@sgi.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH 2/2] xfstests: some refinements on "make depend"
Date: Thu, 10 Mar 2011 16:09:36 -0600 [thread overview]
Message-ID: <1299794976.2573.72.camel@doink> (raw)
In-Reply-To: <20110310172644.GC13390@infradead.org>
On Thu, 2011-03-10 at 12:26 -0500, Christoph Hellwig wrote:
> On Fri, Mar 04, 2011 at 01:37:41PM -0600, Alex Elder wrote:
> > Make it so "make depend" is a generic target, like "make clean".
> >
> > Each Makefile has a "depend" target that indicates whether making
> > dependencies means creating ".dep" or creating ".ltdep" (or, I
> > suppose, both, though none do that right now). Both files get
> > created even if there are no CFILES to scan (to ensure the target
> > up-to-date). The "default" target now depends on "depend" (there is
> > no "ltdepend" any more).
> >
> > Remove the "depend" and "ltdepend" definitions from the "buildrules"
> > file; only the actual generated files (".dep" and ".ltdep") remain
> > as generic targets. The "depend' target is still defined as phony.
> >
> > Do a shell trick when expanding the value of CFILES, to avoid a
> > problem that occurs if it is created by "make" by concatentating two
> > empty strings. The problem was that in that case CFILES will
> > contain a space, and that wasn't getting treated as empty as
> > desired.
> >
> > Make the rule for tool/lib dependencies more generic, to reflect the
> > general desire that "lib" subdirectories need to be built before
> > things in the "tool" subdirectories.
>
> Can we instead port over the generic dependency generation from
> xfsprogs/xfsdump?
My intention was to work toward unifying all the user space
stuff, basically in line with what you suggest.
This is part of a flurry of changes related to the xfstests
dmapi subtree. One of the things I needed to do was populate
a set of new Makefiles there, and I guess in looking into
that I found I didn't like the way the dependencies were done,
and the changes I made to address that ended up in this patch.
I'll hold off on this patch and will reconsider it once
I get the more substantive dmapi changes in.
-Alex
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2011-03-10 22:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-04 19:37 [PATCH 2/2] xfstests: some refinements on "make depend" Alex Elder
2011-03-10 17:26 ` Christoph Hellwig
2011-03-10 22:09 ` Alex Elder [this message]
2011-03-11 10:10 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1299794976.2573.72.camel@doink \
--to=aelder@sgi.com \
--cc=hch@infradead.org \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox