Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 08-11-2006, 11:18 PM   #1
Registered: Aug 2004
Distribution: opensuse ,debian
Posts: 208

Rep: Reputation: 30
Difference between make mrproper and make clean?

What's the difference between make mrproper and make clean in kernel 2.4 source's Makefile? which should I use if in the middle of make, I want to return to the base state. make mrproper or make clean ?
Old 08-12-2006, 12:10 AM   #2
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
I believe mrproper takes you back to a pristine state, i.e., any configuration you set is whacked. make clean just deletes the compiled files. It's been awhile since I compiled a kernel so I might be wrong.
Old 08-12-2006, 12:17 AM   #3
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I 2nd his synopsis, I believe its along those lines as well. Both clean up the kernel tree structure, but each does a little bit different cleaning
Old 08-12-2006, 03:25 AM   #4
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
mrproper cleans the .config file.
what make clean does ???

Old 08-12-2006, 03:46 AM   #5
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
from the 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
Old 03-11-2013, 03:31 PM   #6
LQ Newbie
Registered: May 2005
Location: canada
Distribution: SuSE 8.0
Posts: 9

Rep: Reputation: 1
Thumbs up The right answer

make clean will remove all the object and kernel object files (ending in .o and .ko) and a few other things.
make mrproper will do everything make clean does, plus remove your config file, the dependency files, and everything else that make config creates.


NB: if you r not sure about the answer please do not post, and if you do please join the source from which you find the info. Thanks
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
make: *** No rule to make target `mrproper'. Stop. dauphinfay Linux - General 7 11-24-2014 08:35 AM
what is the difference between make distclean and make clean? alice95089 Linux - Software 3 08-28-2008 02:22 AM
Use of 'make mrproper' and 'make clean'.... fenice1976 Linux - Software 6 05-25-2004 06:18 PM
Difference between make clean and uninstall tuka Linux - Newbie 2 08-23-2003 08:25 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 04:49 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration