From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mrf Newsgroups: gmane.emacs.help Subject: Re: Running makefiles from emacs Date: Fri, 02 Jul 2021 20:13:27 +0300 Message-ID: <87wnq8eik1.fsf@cock.li> References: <87tulibyap.fsf@zoho.eu> <87pmw6oc1z.fsf@cock.li> <87k0md9cxb.fsf@zoho.eu> <87h7hggafy.fsf@cock.li> <874kdf6uo7.fsf@zoho.eu> <87bl7nf7tx.fsf@cock.li> <878s2qfja9.fsf@cock.li> <8735sxf7tc.fsf@cock.li> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17572"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.8; emacs 27.2 Cc: help-gnu-emacs@gnu.org, mrf , Emanuel Berg To: Arthur Miller Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 02 19:23:24 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1lzMsn-0004Fs-CR for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 19:23:23 +0200 Original-Received: from localhost ([::1]:37002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzMsm-0007us-8y for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 13:23:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzMsB-0007sM-1f for help-gnu-emacs@gnu.org; Fri, 02 Jul 2021 13:22:39 -0400 Original-Received: from mail.cock.li ([37.120.193.124]:52934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzMs8-0004SM-Mv for help-gnu-emacs@gnu.org; Fri, 02 Jul 2021 13:22:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1625246552; bh=RVxCXCF1hhiuYF42efl5nezzxTiw9alvY4yv4XZIyXI=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=OBepfVm2HeOnBoVzd+ktBsBihh3TEjkqUXuohhK0Xvz9FdNKX7iu7u2o19qje2pFq BLHTcBGb/eeLhRCYLjxoOxsnW6IG7CYIK/oBzxim+MYZFXuVikjPu4QuBuEou2N4Hr Ib7Iq99hRk7aIeGn4GRo5Xzsx6jrwM0LWn6WZMmdKC8PNV5J8pn7ME2EWpqmEeXYOc KDnFauk9sS2u+ETiAl3z9tMOsNzWNeTIE6xb7nFcBBeOQLjjhKcSHUeKT5oIPMprcP 4KtqcSikHcK+uMDsxNm4D+YUmT2mHJ81B4WD9bzYQLKlrDVe52sP/aSE7tLlsKt1Pz oJq83ICu1C7Sg== In-reply-to: Received-SPF: pass client-ip=37.120.193.124; envelope-from=joinlaw@cock.li; helo=mail.cock.li X-Spam_score_int: 25 X-Spam_score: 2.5 X-Spam_bar: ++ X-Spam_report: (2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_PBL=3.335, RCVD_IN_VALIDITY_RPBL=1.31, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131412 Archived-At: Arthur Miller writes: > Check examples in posted C shell script. You can pass one liner she-bang > with linker/compiler flags on that line. That is still way much less clutter > than what you suggest with your solution :-). Sorry, but your solution > requires you to add shell script to every c source file you wish to use > as a "single source program" as you put it, and in addition even help > from Emacs. No there no need for help from emacs and compiler flags can be passed in command line and also from the C script. The emacs local variable line is for people to quickly run it with M-x compile when they open it but you can take this line if you don't use emacs and run it in the terminal. BTW running it with ./script.c should be sufficient but I put this line as example for passing values and compiler flags. I'd just like to interject for a moment. My GNU/hack does not need extra dependency as what you suggest and If I share this scripts anyone can run it without bothering of installing new dependency.