Re: Bug#177068: make: can't find make return code discussion

2003-02-06 Thread Dan Jacobson
Dear [EMAIL PROTECTED], Please note that the only mention of a return status on the man page is under -q. Please make a separate section RETURN STATUS or whatever, like many other man pages. regarding the Info, > "Manoj" == Manoj Srivastava <[EMAIL PROTECTED]> writes: Manoj> File: make.info,

Re: Bug#218039: /usr/bin/make: Clock skew detected warnings

2003-11-01 Thread Dan Jacobson
> Version: 3.80-4 > $ cat Makefile > a: /proc > : > $ make > make: Warning: File `/proc' has modification time 2.4e+04 s in the future > : > make: warning: Clock skew detected. Your build may be incomplete. > > You see, I wanted a file that means 'now', but recent versions of make > make t

Automatic should be Automatic variables

2004-02-09 Thread Dan Jacobson
No bug address on man page. In Info index: * Automatic:: How to use automatic variables in the commands of implicit rules. --should be * Automatic variables:: ... ___ Bug-make mailing list [EMAIL PROTE

make's Info's `Automatic' page: call it Automatic Variables

2004-04-07 Thread Dan Jacobson
In Info, Automatic gets Possible completions are: Automatic Automatic Prerequisites However when we arrive at the 'Automatic' page, we are surprised to see it calls itself Automatic Variables. So it should be called Automatic Variables everywhere, I'd say. ___

a: $@.b

2004-04-25 Thread Dan Jacobson
$ cat Makefile a: [EMAIL PROTECTED] a.b: $ make -n make: *** No rule to make target `.b', needed by `a'. Stop. But don't we know that $@ = a already at that point? ___ Bug-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-ma

say how to change PATH

2004-05-17 Thread Dan Jacobson
In Info, one cannot find how to change PATH in a Makefile. PATH=/usr/sbin:$(PATH) won't do without spelling out PATH. The best one can do is once on each line: P=PATH=/usr/sbin:$$PATH a: $P; which faubackup ___ Bug-make mailing list [EMAIL PROTE

Double-Colon Rules Info page needs an example

2004-08-22 Thread Dan Jacobson
The Double-Colon Rules Info page needs an example snippet. I think I figured out a use just from reading the documentation however: bus8.htm:: #always check for a fresher version wget -N http://www.fybus.com.tw/bus8.htm fybus.w3m:bus8.htm w3m -cols 99 -dump $? > $@ Or an even more

can't jump to : stuff in Info index

2004-08-22 Thread Dan Jacobson
In the info index, these cannot be jumped to with m etc. * :: rules (double-colon): Double-Colon. * := <1>:Setting. * :=:Flavors. probably because they use Info's colon without quoting or something.

Re: Double-Colon Rules Info page needs an example

2004-08-23 Thread Dan Jacobson
Paul> I don't see how this is a good example of how to use double-colon rules. Well, with no examples to build from, of course all users can do is wildly guess. ___ Bug-make mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-make

document -j

2004-08-28 Thread Dan Jacobson
Parallel Execution GNU `make' knows how to execute several commands at once. Normally, `make' will execute only one command at a time, waiting for it to finish before executing the next. However, the `-j' or `--jobs' option tells `make' to execute many commands simultaneously. Wel

add order-only-prerequisites example

2004-08-28 Thread Dan Jacobson
TARGETS : NORMAL-PREREQUISITES | ORDER-ONLY-PREREQUISITES Well, you got me there. Without examples, we have trouble grasping how to utilize what this Info page is talking about. Obviously the authors must have learned about make from something that we can't find on our Debian system. Probably

Phony Targets Info node's parallelism

2004-08-28 Thread Dan Jacobson
The Phony Targets Info node mentions parallel builds, but I don't see any "&" symbol meaning parallel jobs, nor a make -j. So the node should clarify it is talking about a different type of parallelism. P.S., in emacs use show-trailing-whitespace to see trailing blanks near the bottom of that Info

submake messages not perfect

2004-08-28 Thread Dan Jacobson
The messages on submakes aren't perfect. make[1]: Entering directory `/tmp' make[1]: Leaving directory `/tmp' You mean "starting submake 1" and especially "ending submake[1]". In fact, if one did bla: make a& make b& then they would both be [1], so maybe even mention PID's. __

Re: document -j

2004-08-28 Thread Dan Jacobson
Do add an examples showing when $ make -j x y and $ make x& make y& wait are equivalent, and when they are not. ___ Bug-make mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-make

Re: add order-only-prerequisites example

2004-08-30 Thread Dan Jacobson
Paul> Sometimes features are advanced enough that providing a simple example Well still, a few-liner showing how a: b|c differs from a: b c wouldn't hurt. Paul> under a public license. I meant you guys must be reading an O'Reilly book or hung out in Bell Labs or something. There's no way I coul

Re: submake messages not perfect

2004-08-30 Thread Dan Jacobson
Paul> I guess I still don't understand Dan's comment, though. Well for me, make calling several make&'s all in the same directory, I see lots of messages about how they are entering and leaving that directory, when in fact they never set foot outside that directory, and what they really were tryin

parallelism: job slots vs. levels

2004-08-31 Thread Dan Jacobson
Anyways, $ make x& make y& wait cannot always be rewritten with -j. $ make -j[whatever number] x y will act differently except for special cases of x and y; probably when both x and y have no dependencies. Anyways, with -j examples added to the manual, we would get on the right track about how to

Re: parallelism: job slots vs. levels

2004-09-07 Thread Dan Jacobson
Ok, I guess what I mean by >> will act differently is that the internal order of execution is at least different, though like you say, with properly written Makefiles, the end result should be the same---which is all that matters---OK. Anyways Howard's <[EMAIL PROTECTED]> would be great tutorial ma

info tree jump

2004-11-29 Thread Dan Jacobson
In the info menu, reading the page at LINE A, it seems to lead into the tree at LINE B or something. Maybe move LINE A into the LINE B set or something. Writing the Commands in Rules * Echoing:: How to control when commands are echoed. * Execution:: How comma

add make -C example for more than one directory

2004-11-30 Thread Dan Jacobson
Enhance the example in Info: equivalently, this (*note Summary of Options: Options Summary.): subsystem: $(MAKE) -C subdir by also showing the best way to do this if one has more than one directory he wants to operate on, e.g., ./dir1, ./dir2 (not ./dir1/dir2) __

breaking long lines breakthru

2004-12-12 Thread Dan Jacobson
I have discovered how to not put spaces in lines sent to the shell like a: echo x\ y which will normally print "a b". You just do a: echo x$(\ )y The Makefile also stays tidy. This is such a hot discovery that I "demand" you put something like it into the manual! ___

-s vs. 'Entering directory' messages

2004-12-10 Thread Dan Jacobson
`-s' `--silent' `--quiet' Silent operation; do not print the commands as they are executed. *Note Command Echoing: Echoing. Yes well you had better add a note that even though you might have used make -s insert_rods > master_reactor for years, when one day it becomes part of a recursive

declarations after their use

2004-12-24 Thread Dan Jacobson
I recall I used to be able to get away with declaration after the fact, on line 3 instead of 1: #B=/erer a: $B B=/erer but nowadays (GNU Make 3.80) I must have it before it is used. Or maybe it has always been that way. ___ Bug-make mailing list Bug-mak

alternatives to using */*/*

2005-02-14 Thread Dan Jacobson
Not sure if the Make documentation gives alternatives to using e.g., latest.txt: * */* */*/* */*/*/* */*/*/*/* */*/*/*/*/* ...; commands Perhaps latest:; find . -newer latest.txt ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailm

embedded comments almost anywhere

2005-03-01 Thread Dan Jacobson
The documentation on comments seems to be concentrated on the info page reading * `#' in a line of a makefile starts a "comment". It and the rest OK, but mention how to make a make comment here bla: perl -we 'print "Dont want to see ugliness $(C like this comment) here"' Show what one

Wasteful trailing blanks spotted on one Info page

2005-03-27 Thread Dan Jacobson
Wasteful trailing blanks spotted on one Info page, with cat -e|colrm 21 name1 := $(word $ include inc.mk$ $ name2 := $(word $ all:$ ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-m

make doesn't know about sh's "!"?

2005-12-15 Thread Dan Jacobson
$ make wwwf : erere ! test -w / make: !: Command not found make: *** [wwwf] Error 127 Hold on, both : and ! are shell built-ins. Make doesn't know about "!"? Sigh, must use sh -c '!' OK, ! is a reserved word, not a builtin. ___ Bug-make mailing li

backslash-newline change: my world has become black

2005-12-20 Thread Dan Jacobson
I am downgrading make from 3.80+3.81.b4-1 to 3.80-11 You guys have a new backslash-newline deal that is breaking 1000 of my scripts. E.g., make perl -pwle '\ BEGIN{print "#jidanni ~root/config auto changed"}\ s/^server pool.ntp.org/#jidanni off $&/;\ END{print "#

Re: backslash-newline change: my world has become black

2005-12-24 Thread Dan Jacobson
Any other surprises planned? No I can't just change to " from '. No I don't want to change all my inlines to PERLFUNC=. OK, I found a style that will work in the old and new make: krap: perl -wle 'print 1;'\ 'exit(0);' I now see why python has those future warning messages. > D

Re: backslash-newline change: my world has become black

2005-12-27 Thread Dan Jacobson
Wait, I find I need to do bla: perl -wlne 'if(/^Get:/)[EMAIL PROTECTED];splice(@e,0,3);'"\ "'$$_=join(q{ },@e)}print' zzz to make it work with both old and new make. Assuming I don't want to look into the contents, and instead just modify the front and back of each line. _

Re: backslash-newline change: my world has become black

2006-01-02 Thread Dan Jacobson
In Info "5.2 Command Execution", be sure the best way of all to avoid newline accidents: qz: perl -we 'print 1$(\ )23' Works in both make of today and yesterday at least. Also this: "You may split a long line by inserting a backslash followed by a newline, but this is not required,

unterminated variable reference wrong line number

2006-01-20 Thread Dan Jacobson
Actually, the problem is on line 73, but make says 71: $ make jidanni.html Makefile:71: *** unterminated variable reference. Stop. $ nl -ba Makefile |sed 70,74!d 70 jidanni.html:~/jidanni.txt.gz 71 > $@ 72 echo -e 'http://www.w3.org/TR/html4/strict.dtd";>\n\$( 74

filenames with colons in them

2006-08-28 Thread Dan Jacobson
The manual doesn't say how to deal with filenames with colons in them. $ ls a e:f $ cat Makefile a:e:f bla P.S., in the Info index, lines with :: are unchoosable: byte-code: No such node or anchor: rule, double-colon ( ___ Bug-make mailing list

Re: filenames with colons in them

2006-09-04 Thread Dan Jacobson
>> P.S., in the Info index, lines with :: are unchoosable: >> byte-code: No such node or anchor: rule, double-colon ( EZ> Please give an example of such an index entry in the Make manual (or EZ> any other manual). In the make concept index, I hit RET upon * :: rules (double-colon):

Texinfo forbids two colons in a row

2006-09-06 Thread Dan Jacobson
EZ> CC: bug-make@gnu.org EZ> Anyway, that index entry is invalid: the Texinfo manual forbids index EZ> entries that have 2 colons in a row. I suggest to report this to the EZ> Make maintainer. Didn't we already CC: bug-make@gnu.org ? ___ Bug-make mail

here docs in makefile

2006-09-28 Thread Dan Jacobson
In 5.1.1 Splitting Command Lines, at Sometimes you want to split a long line inside of single quotes, but you don't want the backslash-newline to appear in the quoted content. This is often the case when passing scripts to languages such as Perl, where extraneous backslashes in

SHELL -c hardwired

2006-10-28 Thread Dan Jacobson
One can set SHELL, but there's no way to get rid of the "-c" in case one wants too. E.g., one wants to make SHELL=mysql as an experiment etc. mysql would need a -e, etc. ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bu

Re: SHELL -c hardwired

2006-11-05 Thread Dan Jacobson
>> One can set SHELL, but there's no way to get rid of the "-c" in case one >> wants too. E.g., one wants to make SHELL=mysql as an experiment etc. >> mysql would need a -e, etc. EZ> Doesn't it work to customize shell-file-name and shell-command-switch? EZ> If not, please report which Emacs functi

make -ns

2006-11-12 Thread Dan Jacobson
Just reading the man and Info pages about what -ns will do isn't clear from the -n and -s descriptions. Add something. Also there is no switch to just get a list of targets that will attempt to be made. ___ Bug-make mailing list Bug-make@gnu.org http:/

$(comment)

2006-11-16 Thread Dan Jacobson
Gentlemen, I have discovered an excellent way to comment out parts of lines in makefiles. Be sure you document it somewhere. All one needs to do is wrap a $( . ) around the code to be commented: gp:timez1 echo 'set xdata time;set timefmt "%s";$(set format x "%m/%d";\ set timef

can't get far if file has difficult name

2006-11-30 Thread Dan Jacobson
$ cat Makefile .PRECIOUS:.%.time %.t:.%.time; .%.time:% bla bla bla $ ls -1 Makefile 霧峰-桐林(有經朝陽科技大學) - Wufeng-Tonglin (Via Zhaoyang Technical University) Well, no amount of quoting will enable me to $ make '霧峰-桐林(有經朝陽科技大學) - Wufeng-Tonglin (Via Zhaoyang Technical University)'.t make: *** N

getting warmer error messages

2006-12-20 Thread Dan Jacobson
Certainly you could give slightly different messages instead of the same "I don't know, don't bother me" style message below. Just like we tell little Johnny "No, but you are getting warmer" instead of just "No". $ ls Makefile $ cat Makefile %.aa:%.bb : bla make u make: *** No rule to m

files with : in their names

2006-12-25 Thread Dan Jacobson
Doesn't look like I will get anywhere with filenames with colons in them: mkallexisting:.???.t .*[:-]*.t .Current_events.t Makefile:107: *** multiple target patterns. Stop ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo

warn not to expect both kinds of expansion at the same time

2019-01-14 Thread Dan Jacobson
In (info "(make) Wildcard Examples") Wildcard expansion does not happen when you define a variable. Thus, if you write this: objects = *.o then the value of the variable 'objects' is the actual string '*.o'. However, if you use the value of 'objects' in a target

Idea: --only-make-prerequisites

2019-01-18 Thread Dan Jacobson
Idea: --only-make-prerequisites So $ make --only-make-prerequisites netsift would only make myconfdir/$J.pre myconfdir/$J.cf and stop before the second line of netsift:myconfdir/$J.pre myconfdir/$J.cf cat zz > yy ln q r /etc --only-make-prerequisites is for folks that want to chec

What about the name of the second prerequisite?

2019-06-14 Thread Dan Jacobson
(info "(make) Automatic Variables") has '$<' The name of the first prerequisite... '$?' The names of all the prerequisites that are newer than the target... '$^' The names of all the prerequisites, with spaces between them... '$+' This is like '$^', but prerequisites listed more than once are... '

semicolon effects

2021-04-26 Thread Dan Jacobson
(info "(make) Rule Syntax") says The first recipe line may appear on the line after the prerequisites, with a tab character, or may appear on the same line, with a semicolon. Either way, the effect is the same. However, $ cat Makefile B:; :; Z C: : Z $ make B :

subst: Mention how to deal with a FROM that has commas in it

2023-03-18 Thread Dan Jacobson
(info "(make) Text Functions") says '$(subst FROM,TO,TEXT)' Performs a textual replacement on the text TEXT: each occurrence of FROM is replaced by TO. The result is substituted for the function call. For example, $(subst ee,EE,feet on the street) produces the val

Broken internal links on the make Info Concept Index

2023-11-29 Thread Dan Jacobson
In (info "(make) Concept Index"), these three items, * :: rules (double-colon): Double-Colon.(line 6) * ::=: Flavors. (line 56) * ::= <1>: Setting. (line 6) just jump to the first page

idea: make --show-interpretation

2024-05-06 Thread Dan Jacobson
I have an idea for something --debug=all won't tell the user. Have a command that reads in a makefile and outputs the makefile saying what each part evaluated to. I.e., what (info "(make) Parsing Makefiles") (info "(make) Makefile Contents") think. That way the user wouldn't need to ask around w

Re: idea: make --show-interpretation

2024-05-09 Thread Dan Jacobson
> "DG" == Dmitry Goncharov writes: DG> i'd use -p and -n switches. Thanks. But that still doesn't tell me what the last three lines of my sample file are interpreted as.

Double-Colon rules example missing from manual

2024-06-01 Thread Dan Jacobson
We read (info "(make) Double-Colon") but there are no examples shown. So we have a hard time proceeding. Please add examples.

Misplaced paragraph

2024-06-01 Thread Dan Jacobson
In (info "(make) File Name Functions") be sure to move the paragraph I have marked with X's, AFTER the example. '$(notdir NAMES...)' Extracts all but the directory-part of each file name in NAMES. If the file name contains no slash, it is left unchanged. Otherwise, everything thr

set $*, $@ upon reaching the colon

2024-06-12 Thread Dan Jacobson
$ cat Makefile %.all.kmz: $(addsuffix .kml, $(addsuffix .$*.lines,0 1) $(addsuffix .$*.labels,0 1)) ls $* $ make nnn.all.kmz Here, upon reaching the colon, the make program already has all the information it needs to set $* to "nnn". Alas, it waits until the "ls" line to get around to fin

Poor messages when the '#!' file isn't found

2024-06-13 Thread Dan Jacobson
$ echo \#!/usr/bin/python > k $ chmod +x k $ ./k bash: ./k: cannot execute: required file not found Bash should really mention what file it is talking about. $ echo 'x:k; ./$<' > Makefile $ make ./k make: ./k: No such file or directory make: *** [Makefile:1: x] Error 127 $ ls ./k ./k Make is wor

word and wordlist: allow negative values, to count from the back

2024-06-23 Thread Dan Jacobson
Regarding '$(word N,TEXT)' '$(wordlist S,E,TEXT)' Maybe allow negative values too, to count from the back of the list, like perl.

The man and Info pages say different things about make -p

2024-06-24 Thread Dan Jacobson
The man and Info pages say different things: To print the data base without trying to remake any files, use 'make -qp'. To print the data base without trying to remake any files, use make -p -f/dev/null. Also they should mention how to print the database in non-jumbled order. GNU Make 4.3

Allow more than one % / $*

2024-06-25 Thread Dan Jacobson
(info "(make) Pattern Match") mentions % and $*. It seems it would be quite useful to remove the artificial limit of a single %. Then one could use e.g., %{1}.x.%{2}.y:%{1}.b.%{2}.c ... $*{1} ... $*{2} #or however they should be written Sure, "just move your %{1} and %{2} next to each oth

Add '--warn-redefined-variables'

2024-06-28 Thread Dan Jacobson
Make warns warning: overriding recipe for target 'x' warning: ignoring old recipe for target 'x' and make also has '--warn-undefined-variables'. but how about adding '--warn-redefined-variables' too?

make says rm, not rm -f

2024-07-20 Thread Dan Jacobson
(info "(make) Chained Rules") says The second difference is that if 'make' _does_ create B in order to update something else, it deletes B later on after it is no longer needed. Therefore, an intermediate file which did not exist before 'make' also does not exist after 'make

say which of .PRECIOUS: %.o *.o file.o will actually work

2024-10-08 Thread Dan Jacobson
Manual says: You can list the target pattern of an implicit rule (such as '%.o') as a prerequisite of the special target '.PRECIOUS' to preserve intermediate files made by implicit rules whose target patterns match that file's name; see *note Interrupts::. Well say which of .PRECIOUS:

Re: say which of .PRECIOUS: %.o *.o file.o will actually work

2024-10-10 Thread Dan Jacobson
Thanks. OK, the manual should say that >> .PRECIOUS: %.o will usually work, >> .PRECIOUS: *.o will never work, (unless the file really has an asterisk in its name) and >> .PRECIOUS: file.o will always work.

$(foreach) example not understandable

2024-10-10 Thread Dan Jacobson
Regarding https://www.gnu.org/software/make/manual/html_node/Foreach-Function.html I have spent hours and hours trying to figure out what you are trying to say. Yes I understand the sh, and perl "for" functions just fine. The problem apparently is your example, dirs := a b c d files := $

postrequisites

2025-01-31 Thread Dan Jacobson
Make is all about prerequisites. Well, what about postrequisites? The documentation should address those too. OK, show in the manual that one would need at least two rules, as they would need to be expressed as prerequisites...

mention what will happen if both -s and -n are given.

2015-06-14 Thread 積丹尼 Dan Jacobson
Perhaps (info "(make) Echoing") should mention what will happen when both -s and -n are given on the command line. ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make

mention there is no way to get rid of the space when Appending

2016-01-03 Thread 積丹尼 Dan Jacobson
In (info "(make) Appending") Often it is useful to add more text to the value of a variable already defined. You do this with a line containing '+=', like this: objects += another.o This takes the value of the variable 'objects', and adds the text 'another.o' to it

variables defined in the makefile are ...

2016-01-03 Thread 積丹尼 Dan Jacobson
(info "(make) Environment") says When 'make' runs a recipe, variables defined in the makefile are placed into the environment of each shell. Not true. KK = 22 p: env|grep -c KK gives 0! This allows you to pass values to sub-'make' invocations (*note Recursive Use of 'm

Re: variables defined in the makefile are ...

2016-01-03 Thread 積丹尼 Dan Jacobson
> "PS" == Paul Smith writes: PS> The right way to do this, as with any other variable you want to assign PS> to itself (PATH is not special), is to use simply-expanded variables PS> (:=) PS> PATH := $(PATH):../v4 Ah so on (info "(make) Appending") Using '+=' is similar to: objec

document make -s CFLAGS='-g -O'

2017-02-14 Thread 積丹尼 Dan Jacobson
(info "(make) Overriding") says Each time you run 'make', you can override this value if you wish. For example, if you say 'make CFLAGS='-g -O'', each C compilation will... Wouldn't "make CFLAGS='-g -O'" be clearer? Also add an example of if one should write make -s CFLAGS='-g -O' or mak

give .PRECIOUS exampls

2017-04-06 Thread 積丹尼 Dan Jacobson
On (info "(make) Interrupts") be sure to give an example, as one finds .PRECIOUS: %.csv #works .PRECIOUS: *.csv #doesn't also it needs to be high up in the Makefile, not on e.g., the last line. ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu

Add -N: a safe, $(MAKE) proof version of -n

2017-07-07 Thread 積丹尼 Dan Jacobson
Sometimes the user just wants -n to always just print, despite the little $(MAKE) landmines buried deep in a Makefile. (info "(make) Instead of Execution") Yes, he doesn't want to worry that the code will explode in his face, calling up Moscow on the hotline, etc. Thus I hereby propose that you p

Mention at $< what the user should do if he instead wants the 2nd

2017-07-26 Thread 積丹尼 Dan Jacobson
On (info "(make) Automatic Variables") after '$<' The name of the first prerequisite. If the target got its recipe from an implicit rule, this will be the first prerequisite added by the implicit rule (*note Implicit Rules::). Please add: For instead e.g., the fourth prerequ

two kinds of order

2017-07-26 Thread 積丹尼 Dan Jacobson
On (info "(make) Automatic Variables") please mention which of M:/dev/null /dev/zero : $? : $+ : $^ : $| are guaranteed to preserve the order. I.e., /dev/null /dev/zero not /dev/zero /dev/null. and which all bets are off. Also maybe when people read about (Info-in

$(reverse)

2017-07-26 Thread 積丹尼 Dan Jacobson
Maybe implement $(reverse) A = a b c d e x: echo $(reverse, $A) Would give e d c b a or at least at (Info-search "reverse") This macro simply reverses its arguments: reverse = $(2) $(1) foo = $(call reverse,a,b) mention how to reverse a whole list. _

Re: Mention at $< what the user should do if he instead wants the 2nd

2017-07-27 Thread 積丹尼 Dan Jacobson
> "EW" == Edward Welbourne writes: EW> Alternatively, simply mention under $< that it's equivalent to EW> $(word 1,$^) - from which the reasonable reader my interpolate EW> the rest. Indeed, and if properly hyperlinked, one click and the user can also find out about $(wordlist). ___

mention if a=b make = make a=b

2017-11-20 Thread 積丹尼 Dan Jacobson
(info "(make) Environment") should mention how equivalent $ a=b make #and $ make a=b are to each other. See also http://debbugs.gnu.org/29270 ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make

Re: mention if a=b make = make a=b

2017-11-21 Thread 積丹尼 Dan Jacobson
> "EW" == Edward Welbourne writes: EW> They're not quite equivalent, although an example like the one you give EW> may be a good one for the documentation to explore in explaining what EW> the difference is. Yes that is what I hope will be done. _

Re: mention if a=b make = make a=b

2017-11-22 Thread 積丹尼 Dan Jacobson
I was hoping somebody who knows the differences would add to the section. I barely know how to use make. ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make

Add .ALL_WARNINGS_FATAL special target

2017-12-28 Thread 積丹尼 Dan Jacobson
In (info "(make) Error Messages") 'warning: overriding recipe for target `XXX'' 'warning: ignoring old recipe for target `XXX'' GNU 'make' allows only one recipe to be specified per target (except for double-colon rules). If you give a recipe for a target which already has been def

Re: Add .ALL_WARNINGS_FATAL special target

2018-01-05 Thread 積丹尼 Dan Jacobson
Yes hmm, perhaps just like the 'warnings(3perl)' man page, one could do different grades, e.g., .FATAL_WARNINGS: ALL etc. And there could be both command line options, and phony targets, so people could use either one as they pleased. ___ Bug-make mailin

multiple identical rules

2018-01-23 Thread 積丹尼 Dan Jacobson
Maybe this should produce a warning $ cat Makefile m: /tmp/ky m: /tmp/ky m: /tmp/ky m: /tmp/ky echo ... ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make

(info "(make) Chained Rules") lacks examples

2018-02-22 Thread 積丹尼 Dan Jacobson
(info "(make) Chained Rules") is great, but it lacks code snippet examples. It mentions several features, but all with English prose. It needs some hard code examples. And those examples should be independent of those built in for C compilers, etc. rm bla.bla # See, bla.bla got re

print line numbers in error messages

2018-04-26 Thread 積丹尼 Dan Jacobson
make: Circular poledata/台中區處pole.csv <- poledata/台中區處pole.csv dependency dropped. Great. But please say which line number(s) you are talking about! Some Makefiles may have many mostly identical lines. ___ Bug-make mailing list Bug-make@gnu.org https:/

Re: print line numbers in error messages

2018-04-26 Thread 積丹尼 Dan Jacobson
> "EZ" == Eli Zaretskii writes: EZ> What version of Make do you have there? The latest versions already EZ> report the line numbers together with errors. make --version GNU Make 4.2.1 ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.or

Re: Idea: --only-make-prerequisites

2019-01-19 Thread 積丹尼 Dan Jacobson
> "EW" == Edward Welbourne writes: EW> The command-line option would save the need to edit the make-file to be EW> ready to be used this way, which would be welcome when the make-files EW> aren't familiar (especially if they're auto-generated and numerous). Or part of a giant read-only tree,

Mention make -n -s

2019-02-10 Thread 積丹尼 Dan Jacobson
On (info "(make) Echoing") mention what happens when both -n and -s are (yes, uselessly) given. (-n wins.) ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make

addsuffix influence...

2019-03-28 Thread 積丹尼 Dan Jacobson
I thought targets A:$D/$(addsuffix .kmz, $L $N) B:$D/$L.kmz $D/$N.kmz should do the same. $ cat makefile D=X_X_X_X N=noise L=light A:$D/$(addsuffix .kmz, $L $N) B:$D/$L.kmz $D/$N.kmz %.kmz:%.kml; minizip -o $@ $? %.kml:%.kml0; fgrep -v '?xml' $? > $@ %.kml0: n input.txt; mode=$* ./n input.txt > $@

Re: addsuffix influence...

2019-03-28 Thread 積丹尼 Dan Jacobson
OK you're right. But why is what is on line A influencing this when we are trying to make B? $ cat makefile D=X_X_X_X N=noise L=light A:$D/$(addsuffix .kmz, $L $N) B:$D/$L.kmz $D/$N.kmz %.kmz:%.kml; minizip -o $@ $? %.kml:%.kml0; fgrep -v '?xml' $? > $@ %.kml0: n input.txt; mode=$* ./n input.txt >

Re: addsuffix influence...

2019-03-29 Thread 積丹尼 Dan Jacobson
Hmmm, well on https://www.gnu.org/software/make/manual/html_node/Chained-Rules.html they often say "mentioned in the makefile". They need to say once: "yes, anywhere in the entire makefile, (except within comments.)" ___ Bug-make mailing list Bug-make@g

Three lines in Concept Index not linked

2019-04-15 Thread 積丹尼 Dan Jacobson
In (info "(make) Concept Index") these three lines * :: rules (double-colon): Double-Colon. * ::=: Flavors. * ::= <1>: Setting. are not linked. GNU Make 4.2.1 ___ Bug-make mai

Re: Three lines in Concept Index not linked

2019-04-15 Thread 積丹尼 Dan Jacobson
>>>>> "EZ" == Eli Zaretskii writes: >> From: 積丹尼 Dan Jacobson >> Date: Mon, 15 Apr 2019 21:21:26 +0800 >> >> In (info "(make) Concept Index") these three lines >> * :: rules (double-colon): Double-Colon.

Re: What about the name of the second prerequisite?

2019-06-15 Thread 積丹尼 Dan Jacobson
OK, on (info "(make) Automatic Variables") has after '$<' The name of the first prerequisite. If the target got its recipe from an implicit rule, this will be the first prerequisite added by the implicit rule (*note Implicit Rules::). add: To get the name of the second etc. pre

Do link when mentioning order-only prerequisite

2019-06-28 Thread 積丹尼 Dan Jacobson
(info "(make) Automatic Variables") should hyperlink to (info "(make) Prerequisite Types") at each place it mentions "order-only prerequisites". Or at least the first time. ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo

User worries about compatibility each time he sees the words GNU make

2019-06-28 Thread 積丹尼 Dan Jacobson
On (info "(make) Prerequisite Types") it says There are actually two different types of prerequisites understood by GNU 'make': normal prerequisites such as described in the previous section, and "order-only" prerequisites. So one thinks "Ah, this (two different...) must be specific to GN

make -s -n documentation

2020-10-20 Thread 積丹尼 Dan Jacobson
(info "(make) Echoing") perhaps should mention what happens when -s and -n are combined.

Implement make --all-targets-matching-regexp

2021-04-01 Thread 積丹尼 Dan Jacobson
Let's take Makefile: alzu:; echo $@ Blibco:; echo $@ Norfowitz; echo $@ nillsburg; echo $@ Well let's say we want to run all the capital letter items. We could use $ make Blibco Norfowitz but that isn't as smart as $ make --all-targets-matching-regexp '^[A-Z].*' #Or instead these kinds or regexp

Hard to understand make -B on man page

2021-04-01 Thread 積丹尼 Dan Jacobson
On the make man page, -B, --always-make Unconditionally make all targets. seems to mean for Makefile a:; echo $@ b:; echo $@ c:; echo $@ $ make -B should make all three. Therefore the wording should be more like the INFO page. GNU Make 4.3

Re: Implement make --all-targets-matching-regexp

2021-04-02 Thread 積丹尼 Dan Jacobson
> "PD" == Pete Dietl writes: PD> Perhaps a better option would be to make an option to list all PD> targets. That would just be e.g., perl -nwle 'print for /^\w+:/g;' PD> Then one can grep to select ones in any which way. Well OK, I guess all this won't be needing make to add such features

Document -n echoed vs. echoed and executed commands

2021-04-09 Thread 積丹尼 Dan Jacobson
Some -n output is just echoed commands. Some of it is actually echoed and executed commands. Document exactly how to tell the difference, or document that there is no way.

Document nested -n bomb diffusion

2021-04-09 Thread 積丹尼 Dan Jacobson
(info "(make) MAKE Variable") still just says The special feature makes this do what you want: whenever a recipe line of a rule contains the variable 'MAKE', the flags '-t', '-n' and '-q' do not apply to that line. Recipe lines containing 'MAKE' are executed normally despite th

  1   2   >