From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam James Newsgroups: gmane.emacs.devel Subject: Re: src/Makefile unhelpful Date: Thu, 8 Sep 2022 05:51:37 +0100 Message-ID: <81B26ACA-E8C3-4FAC-9BB5-A6B40C3B4A55@gentoo.org> References: <83bkrrj48w.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: multipart/signed; boundary="Apple-Mail=_E0AAA7BF-D6F5-466D-9A36-777638E64711"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17307"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 08 06:53:42 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oW9Xp-0004Or-Ll for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Sep 2022 06:53:41 +0200 Original-Received: from localhost ([::1]:49358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oW9Xo-0007d2-IV for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Sep 2022 00:53:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW9W4-0006Wa-Kj for emacs-devel@gnu.org; Thu, 08 Sep 2022 00:51:52 -0400 Original-Received: from smtp.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:40759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oW9W2-0003M5-FG; Thu, 08 Sep 2022 00:51:51 -0400 In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2001:470:ea4a:1:5054:ff:fec7:86e4; envelope-from=sam@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:294898 Archived-At: --Apple-Mail=_E0AAA7BF-D6F5-466D-9A36-777638E64711 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On 8 Sep 2022, at 04:00, Richard Stallman wrote: > > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > >>> Anyway, I think it would be useful for each make run to output, for >>> debugging, each actual command. It could show each of the usual >>> commands once, or (if it isn't hard) only the usual commands that were >>> actually executed. To show, for instance, what this expands into: >>> >>> >>> at least if the .c.o rule is ever used. > >> I think this is rarely needed, so having it silent by default is >> better. > > We may be miscommunicating. My idea is that each make run that runs > the command > > $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) > > at least once, should output _just once_ what that expands into. > > I agree we do not want to output the expansion more than once. Note that CFLAGS can (I don't speak for whether they do in Emacs) vary per file, target, directory, ... As for CC, I think you could read configure output if you're particularly interested in that. I think if you do want this, the best place to recommend it would be the automake mailing lists. Emacs will become harder to maintain if it develops quirks like this, and it'll be confusing to outsiders who are familiar with automake to see such an odd construct. > >> The way to see the arguments is to say > >> make V=1 > > The problem with that solution is that by October I certainly won't > remember it. You could put it in an alias or MAKEOPTS or something, although it may not work with some homebrew Makefiles (projects other than Emacs, not using autotools). Best, sam --Apple-Mail=_E0AAA7BF-D6F5-466D-9A36-777638E64711 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCYxl02l8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kBVjAP9+wl6N/8NuaAjHZcPJhMCKCbas56NnsUC+taFLqoZ4owD+JnUEhJ93/7Sb wSQM0EYLvrbYNumytC34xeOBtw52xQI= =8G/Q -----END PGP SIGNATURE----- --Apple-Mail=_E0AAA7BF-D6F5-466D-9A36-777638E64711--