HomeFreeBSD

Fix 'make cleanworld' to respect TARGET/TARGET_ARCH for cross-build objtrees.

Description

Fix 'make cleanworld' to respect TARGET/TARGET_ARCH for cross-build objtrees.

This simplifies the logic to always try removing the objdir if it exists
and to fallback on a 'cleandir' if no objdir exists. The reasoning for
this is to avoid rm -rf src/* (r126024)

Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks

Details

Provenance
bdreweryAuthored on
Parents
rS290626: Move 'make cleandir' from Makefile to Makefile.inc1.
Branches
Unknown
Tags
Unknown