[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gmake feature (enhancement)
From: |
Phi Debian |
Subject: |
gmake feature (enhancement) |
Date: |
Wed, 24 Jan 2018 12:46:28 +0100 |
Hi All,
First post here, if I should not post here tell me gently :)
I am new to gmake (coming from the old unix world) and gmake is really
conveniant to work with.
I am not too fluent though, so may be my enhancement suggestion are
already adressed but didn't find the answer.
I'd like 2 things.
1) I'd like that -jN do leave some foot print in the environment, OR
better set a gmake internal variable (predefined name) with the number
that as given.
I do a lot of parallel make, with submake located on remote nodes, and
I'd like to forward what I got on the outter make invocation.
So far the workaround this lack of feature is to enforce the usage of
a make var, i.e I enforce J=N in the runstring of the outter make
invocation, if J= is not given then make fail saying "use J=N instead
of -jN"
This is ok, but using -jN is more common, so getting the -jN in a
variable would be nice to have. $(MAKE_NJOBS)
2) I'd like o suppress the enter/leaving message.
make: Entering directory '...'
make: Leaving directory '...'
Within the makefile, i.e though the user simply typed 'make' with no
suppress option, if want myself remove the enter/leaving message as I
do it myself addting the pid as a header i.e I printout things like
22335: Enter /...
22335: Exit /...
Since I prefix all my make rules @echo with the make pid this is conveniant.
A way to implement this could be that make defines 2 predef variables
MAKE_ENTER_MSG_HDR and MAKE_LEAVE_MSG_HDR with their default values
MAKE_ENTER_MSG_HDR:='make: Entering directory'
MAKE_LEAVE_MSG_HDR:='make: Leaving directory'
Then the user (me) could redefine this
MAKE_ENTER_MSG_HDR:="$(MAKEPID): Enter"
etc....
Thanx in advance
Cheers,
Phi
- gmake feature (enhancement),
Phi Debian <=