How to rebuild svn trunk after an update?

20 views
Skip to first unread message

Fulvio Senore

unread,
May 2, 2012, 5:00:41 PM5/2/12
to wx-u...@googlegroups.com
This looks like a dumb question but I really need some help.

I am updating my copies of svn trunk rather often lately, so I would
like to rebuild it as quickly as possible.

Under Windows (using visual studio)I know what to do: look at setup0.h.
If it has not changed just build the project to recompile only what
needs to be recompiled, otherwise rebuild all.

Under Linux or Mac I use configure and make to build the library. After
an svn update is it enough to run make again? This should be ok if only
cpp files have changes, but does it work in case of change in some
important header (the equivalent of changing setup0.h under Windows)?
Of course I can run configure again to be sure, but this require a full
recompilation of the library.

What should I do to build the library after an svn update?

Thanks in advance.

Fulvio Senore

Vadim Zeitlin

unread,
May 2, 2012, 6:09:22 PM5/2/12
to wx-u...@googlegroups.com
On Wed, 02 May 2012 23:00:41 +0200 Fulvio Senore wrote:

FS> Under Linux or Mac I use configure and make to build the library. After
FS> an svn update is it enough to run make again?

Yes if configure didn't change. If it did change, it's safer to return it.
This can be done by the magic

$ ./config.status --recheck && ./config.status

incantation. Or by just rerunning the same full configure command line as
the last time, of course.

FS> Of course I can run configure again to be sure, but this require a full
FS> recompilation of the library.

Usually it doesn't as the generated setup.h should be unchanged. There is
still time taken by configure itself which can be up to a minute on older
systems. And even more under Cygwin :-(

FS> What should I do to build the library after an svn update?

I'd say "make", if you have some weird problems, rerun configure and
"make" again.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Reply all
Reply to author
Forward
0 new messages