Bitcoin Forum
June 27, 2024, 03:55:52 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Source compile method  (Read 172 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
February 20, 2018, 06:34:17 AM
Last edit: February 20, 2018, 07:13:50 AM by wsxdrfv
 #1

So for newest source, doc says how to compile,

Cd ~/xxxxcoin/
./autogen.sh
./configure
make
make clean
sudo make install


So after I revise some source, I should do these line all again from ./autogen.sh?
or can I skip  ./autogen.sh  and ./configure, and just type [make] and [sudo make install]?
What commands are essential to recompile?

Thanks.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
February 20, 2018, 04:17:30 PM
 #2

Firstly, there is no need to do make clean after make, that will just undo everything you just built. Rather you should do that before running make so that you are guaranteed to rebuild everything, but usually there is no need to do so.

You can skip the autogen.sh and configure steps if your changes did not touch any of the Makefile related things (Makefile.am, configure.ac, etc.).

wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
February 20, 2018, 09:26:43 PM
 #3

Firstly, there is no need to do make clean after make, that will just undo everything you just built. Rather you should do that before running make so that you are guaranteed to rebuild everything, but usually there is no need to do so.

You can skip the autogen.sh and configure steps if your changes did not touch any of the Makefile related things (Makefile.am, configure.ac, etc.).
Thanks!
Soulforged
Jr. Member
*
Offline Offline

Activity: 40
Merit: 7


View Profile
February 20, 2018, 11:59:46 PM
 #4

Firstly, there is no need to do make clean after make,

Best advice you will get! Doing a clean make every time will kill you with boredom.

By the way, if you're a developer and are interested in working on a project at some point feel free to drop me a message.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!