Difference between revisions of "Talk:Compiling Programs from Source"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
(Created page with "== make clean make mrproper == Cleaning is done on three levels, as described in a comment in the Linux kernel Makefile: ### # Cleaning is done on three levels. # make clean...")
 
m (make clean make mrproper)
 
Line 3: Line 3:
 
Cleaning is done on three levels, as described in a comment in the Linux kernel Makefile:
 
Cleaning is done on three levels, as described in a comment in the Linux kernel Makefile:
  
###
+
###
# Cleaning is done on three levels.
+
# Cleaning is done on three levels.
# make clean    Delete most generated files
+
# make clean    Delete most generated files
#                Leave enough to build external modules
+
#                Leave enough to build external modules
# make mrproper  Delete the current configuration, and all generated files
+
# make mrproper  Delete the current configuration, and all generated files
# make distclean Remove editor backup files, patch leftover files and the like
+
# make distclean Remove editor backup files, patch leftover files and the like
  
 
According to the Makefile, the mrproper target depends on the clean target (see line 1421). Additionally, the distclean target depends on mrproper.
 
According to the Makefile, the mrproper target depends on the clean target (see line 1421). Additionally, the distclean target depends on mrproper.

Latest revision as of 20:02, 30 August 2019

make clean make mrproper

Cleaning is done on three levels, as described in a comment in the Linux kernel Makefile:

###
# Cleaning is done on three levels.
# make clean     Delete most generated files
#                Leave enough to build external modules
# make mrproper  Delete the current configuration, and all generated files
# make distclean Remove editor backup files, patch leftover files and the like

According to the Makefile, the mrproper target depends on the clean target (see line 1421). Additionally, the distclean target depends on mrproper.

Executing make mrproper will therefore be enough as it would also remove the same things as what the clean target would do (and more).

The mrproper target was added in 1993 (Linux 0.97.7) and has always depended on the clean target. This means that it was never necessary to use both targets as in make clean && make mrproper.

Historic reference: https://archive.org/details/git-history-of-linux