edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* Top makefile: add MAKE var and C option
@ 2023-08-21 20:56 Alfonso S. Siciliano
  0 siblings, 0 replies; only message in thread
From: Alfonso S. Siciliano @ 2023-08-21 20:56 UTC (permalink / raw)
  To: edbrowse-dev

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-21 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-21 20:56 Top makefile: add MAKE var and C option Alfonso S. Siciliano

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).