RFR: JDK-8034199 Add 'reconfigure' target for re-creating a configuration

David Holmes david.holmes at oracle.com
Mon Feb 17 02:10:47 UTC 2014


On 12/02/2014 11:36 PM, Magnus Ihse Bursie wrote:
> Sometimes we need to re-run configure, due to changes in configure
> files. Make detects such changes and forces a new run of configure.
>
> If configure was run with a long command line, it's tricky to get this
> right again. However, this can be done automatically by the Makefile.

Presumably the right way to do this would be:

"make clean reconfigure ..."

otherwise you could get some kind of weird hybrid build. I'm not sure 
that every change in spec.gmk, for example would force a recompile of 
everything that depended on something in there. But perhaps it does?

> By adding a new target 'reconfigure', if we have an existing
> configuration, configure will be ran again with the same arguments as
> last time.

Sometimes I've re-run configure with the exact same args and I get a 
warning about doing this over an existing configuration ?? At which 
point I either do a dist-clean or "rm -rf ...".

David

> Bug: https://bugs.openjdk.java.net/browse/JDK-8034199
> WebRev:
> http://cr.openjdk.java.net/~ihse/JDK-8034199-add-reconfigure-target/webrev.01
>
>
> /Magnus



More information about the build-dev mailing list