[bug #18335] Addition of $(math ...) functions

2009-10-05 Thread Paul D. Smith
Follow-up Comment #5, bug #18335 (project make): No one is suggesting integrating Guile just to provide math functions. There are a lot of operations which are not covered by the current suite of make functions (take a look at the various enhancement requests, etc. for new ones) and I'm not inte

[bug #27609] Stupid inference rule for yacc files can clobber C sources!

2009-10-05 Thread Paul D. Smith
Follow-up Comment #5, bug #27609 (project make): First let me point out that the behavior you're concerned about is actually required by the POSIX standard for make; the standard requires this as a built in rule to all conforming implementations: .y.c: $(YACC) $(YFLAGS) $< mv y.tab.c $@

[bug #27609] Stupid inference rule for yacc files can clobber C sources!

2009-10-05 Thread Kaz Kylheku
Follow-up Comment #4, bug #27609 (project make): By the way, this is quite bad. The behavior happens even if I have an explicit rule like this: foo.o: foo.c If there is a foo.y, foo.c is clobbered, even though foo.c exists. This is so retarded. The search for the prerequisite of foo.o must

[bug #27609] Stupid inference rule for yacc files can clobber C sources!

2009-10-05 Thread Kaz Kylheku
Follow-up Comment #3, bug #27609 (project make): Re: what can be done about it. Enough silly venting. How about the question of what can be done about it? I have an idea. How about a check to see whether the .c file to be clobbered is actually a yacc-generated file? If the file already exists,

[bug #27609] Stupid inference rule for yacc files can clobber C sources!

2009-10-05 Thread Kaz Kylheku
Follow-up Comment #2, bug #27609 (project make): If I have two different yacc files that generate different parsers in the same directory, then I'm going to be aware of that situation and resolve it. If I don't resolve it, then they will both clobber y.tab.c, which is my fault. I'm bitten by my o

[bug #27609] Stupid inference rule for yacc files can clobber C sources!

2009-10-05 Thread Paul D. Smith
Follow-up Comment #1, bug #27609 (project make): This is how the default rule for building YACC files in GNU make has always been, for 20-odd years. From the GNU make manual section "Catalog of Rules": Yacc for C programs n.c is made automatically from n.y by running Yacc with the command

[bug #18335] Addition of $(math ...) functions

2009-10-05 Thread Kaz Kylheku
Follow-up Comment #4, bug #18335 (project make): The make program does a lot of work by generating shell script fragments and running them. Not only are the lines of rule bodies shell scripts, but GNU makefiles make other uses of shell features. For instance, calling the find utility to locate ta

[bug #27609] Stupid inference rule for yacc files can clobber C sources!

2009-10-05 Thread Kaz Kylheku
URL: Summary: Stupid inference rule for yacc files can clobber C sources! Project: make Submitted by: kkylheku Submitted on: Mon 05 Oct 2009 12:36:09 PM PDT Severity: 3 - Normal

Re: GNU make to consider files checksum

2009-10-05 Thread Tim Murphy
Hi :-) 2009/10/5 : > > Tim Murphy wrote: >> I think that checksumming might benefit some targets.  It would be >> nice to be able to implement different "methods" for different targets >> - because not all methods work well in all circumstances. > >> I have one example where every single file in

RE: GNU make to consider files checksum

2009-10-05 Thread lasse.makholm
Tim Murphy wrote: > I think that checksumming might benefit some targets. It would be > nice to be able to implement different "methods" for different targets > - because not all methods work well in all circumstances. > I have one example where every single file in a huge build includes 1 > par