Makefile: move the cleaning of staging_dir/target* from dirclean to clean
authorFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 17:47:16 +0000 (17:47 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 17:47:16 +0000 (17:47 +0000)
commit421961a86235f99dc2b1211507471394b9f11da9
tree7bcdd159e62e694c52cf86796af7d0679e607a2b
parentba9af7b1af75c721b7904c58acc656b7bea1cfec
Makefile: move the cleaning of staging_dir/target* from dirclean to clean

Currently "make clean" only clears the build_dir/target*, but leaves
staging_dir/target* intact. "make clean" should also clean the
staging_dir/target* directories, as in the current situation some old
packages or libraries may be linked into the firmware from staging_dir
despite a "make clean".

The patch reorganises clean / dirclean functionality so that
* "make clean" also clears the staging_dir/target* in addition to
build_dir/target*.
* "make dirclean" clears toolchain and host(=tools) directories from both
build_dir and staging_dir

signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 45973
Makefile