mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* More Makefile Misery
@ 2002-10-20  0:27 Russell King
  2002-10-20  8:08 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2002-10-20  0:27 UTC (permalink / raw)
  To: linux-kernel

When running make clean on an ARM tree, I get:

make[1]: *** No rule to make target `arch/arm/mach-/Makefile'.  Stop.

Seeing as we have many mach-* directories, and the relevant one is
selected by the relevant .config file.

I see two options:

- recurse into the correct one somehow, given that the .config file may
  have changed since the kernel tree was built.
- recurse into all mach-* directories for make clean and not for the
  normal build

(Its late, I've not looked at the makefiles yet)

Comments?

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: More Makefile Misery
  2002-10-20  0:27 More Makefile Misery Russell King
@ 2002-10-20  8:08 ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2002-10-20  8:08 UTC (permalink / raw)
  To: Russell King; +Cc: linux-kernel

On Sun, Oct 20, 2002 at 01:27:50AM +0100, Russell King wrote:
> When running make clean on an ARM tree, I get:
> 
> make[1]: *** No rule to make target `arch/arm/mach-/Makefile'.  Stop.
> 
> Seeing as we have many mach-* directories, and the relevant one is
> selected by the relevant .config file.
> 
> I see two options:
> 
> - recurse into the correct one somehow, given that the .config file may
>   have changed since the kernel tree was built.
> - recurse into all mach-* directories for make clean and not for the
>   normal build
The cure is simple.
Make sure that MACHINE is always assined a sensible value.

MACHINE := sa1100 # Default value to avoid invalid pathnames with no .config

The recursion into the subdirectories does only take care of files listed
with EXTRA_TARGETS, host-progs, and clean-files.
Only EXTRA_TARGETS are used in the mach- Makefile, and since this is a
*.o file it will anyway be deleted by the find that searches the full
tree when you do a make clean.
Make clean execute a find -name '*.[oas]' and remove all such files,
and use the recursion only to take care of other generated files
spread out over the kernel src tree.

	Sam

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-20  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-20  0:27 More Makefile Misery Russell King
2002-10-20  8:08 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome