On Oct 11, 2017, at 2:45 PM, Andy Bradford <[email protected]> wrote:
>
> BSD make does have conditionals, but clearly not using the syntax that
> was there.
It’s more than that. There are two other GNU make-isms in that one line.
> you want a Makefile
> target that will rebuild the Makefile if it's out of date?
Yes, defined as “auto.def, automake/*, src/main.mk, or Makefile.in has changed.”
But that’s already done. What I removed in [454e1193] is just a wrapper around
that to prevent it from happening when you say “make clean” while one of those
conditions is true:
$ touch auto.def
$ make clean
…reconfiguring
…rm -rf bld/* fossil
There’s no point reconfiguring in that case, but without the condition, it
happens anyway.
> Would it be a
> bad idea to add Makefile as a prerequisite of building Fossil (in
> src/main.mk)?
That does not appear to be necessary. I did not explicitly make Makefile a
dependency of any other top-level target, yet “touch auto.def ; make” does
reconfigure somehow. I’m guessing I’m relying on one of GNU & BSD make’s
automatic rules.
_______________________________________________
fossil-dev mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/fossil-dev