Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D3D2A431FC1 for ; Wed, 14 Apr 2010 10:47:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FA2urYu1afWg; Wed, 14 Apr 2010 10:47:59 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id EE6B74196F3; Wed, 14 Apr 2010 10:47:58 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id A0F09568DE1; Wed, 14 Apr 2010 10:47:58 -0700 (PDT) From: Carl Worth To: Aaron Ecay , notmuch@notmuchmail.org Subject: Re: [PATCH 2/4] Fix up Makefile for build. In-Reply-To: <1271029494-89014-2-git-send-email-aaronecay@gmail.com> References: <4bc25ea0.86c3f10a.45a3.ffff80d3@mx.google.com> <1271029494-89014-2-git-send-email-aaronecay@gmail.com> Date: Wed, 14 Apr 2010 10:47:58 -0700 Message-ID: <87tyreexip.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 17:48:00 -0000 --=-=-= On Sun, 11 Apr 2010 19:44:52 -0400, Aaron Ecay wrote: > Must set extra_c(xx)flags before including subdir Makefile.local's, > so that there is a blank slate that the subdirs can add on to. That part looks just fine, but it's intermixed with: > Must include subdir Makefile.local's before global one, otherwise > the compat sources are not added to the list of those to be > compiled. This part, which seems not ideal. I would have preferred it if we could have avoided fiddly ordering issues with our Makefile includes. The concept is that we are writing a single, flat Makefile but just maintaining it in pieces. And traditional Makefile rules don't depend on ordering so much. But the change of this variable assignment: But the patch switches to an order-dependent variable assignment for notmuch_compat_srcs here: > -notmuch_compat_srcs = > +notmuch_compat_srcs := And testing this a bit, it does seem necessary to do this since we are already using the order-dependent $(dir) variable in the expansion of notmuch_compat_srcs. So I've convinced myself, and pushed this patch as well. (I even tested by manually setting HAVE_GETLINE to 0 in Makefile.config) -Carl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLxf/O6JDdNq8qSWgRAnIkAKCRRMbJt7fOOp0OgA+RKYggNw5KiwCfXN6F Wyf1zdNhyVT/COrP71TAkco= =dHwj -----END PGP SIGNATURE----- --=-=-=--