From: "Alfonso S. Siciliano" <alf.siciliano@gmail.com>
To: edbrowse-dev@edbrowse.org
Subject: Top makefile: add MAKE var and C option
Date: Mon, 21 Aug 2023 22:56:13 +0200 [thread overview]
Message-ID: <33e203e6-a41f-54ad-c566-a7ab44380b80@gmail.com> (raw)
Hello,
Recently I proposed an update for src/makefile and the top makefile; now
both committed. I omitted a description for the top makefile change. My
mistake, I apologize.
The change is
all :
- cd src ; make
+ $(MAKE) -C src
clean :
- cd src ; make clean
+ $(MAKE) -C src clean
Description and rationale.
Change 1: Replace make with the $MAKE variable.
Why? GNU make replaces this variable with the utility name used to
"perform" the makefile. This fixes naming problem because some OS names
GNU make "gmake". Moreover I found a problem testing edbrowse with
automatic building system (used by distros and OSs package builders).
Usually they run make with the -j<number jobs> option to build in
parallel. The $MAKE variable passes also -j to the makefile in
src/makefile avoiding system warnings and faults. The $MAKE variable
variable is documented in
<https://www.gnu.org/software/make/manual/html_node/MAKE-Variable.html>.
Change 2: Replace cd src with -C src.
It is just a sugar syntax, the -C option is documented in
<https://www.gnu.org/software/make/manual/html_node/Recursion.html>.
Best Regards,
Alfonso
reply other threads:[~2023-08-21 20:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=33e203e6-a41f-54ad-c566-a7ab44380b80@gmail.com \
--to=alf.siciliano@gmail.com \
--cc=edbrowse-dev@edbrowse.org \
/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;
as well as URLs for NNTP newsgroup(s).