Skip to contentSkip to conversation

"make distclean" tries to clean the source tree, not the output tree

DISCUSSION Robert P. J. Day 1 participant 2 messages Feb 18, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

this doesn't seem right:

distclean: mrproper

        @find $(srctree) $(RCS_FIND_IGNORE) \
                \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
                ...

doesn't that mean that "make distclean" will invariably try to clean the source tree, even if you've specified "O="? it certainly seems that way.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================

#1 lore raw
Quoted 8 lines · Robert P. J. Day

this doesn't seem right:

distclean: mrproper

        @find $(srctree) $(RCS_FIND_IGNORE) \
                \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
                ...
Quoted 5 lines

doesn't that mean that "make distclean" will invariably try to clean the source tree, even if you've specified "O="? it certainly seems that way.

rday

never mind, i just realized how silly that complaint was, given that running "make distclean" on a remote directory is totally meaningless. duh.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================