From 7a58225c170e9a416fec9986e90d554dfb57f7cb Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 7 Sep 2019 00:30:59 -0500 Subject: Fix up clean so we clean up after toybox-$TARGET and can do cross.sh all. --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 111f32ed..316df2f8 100644 --- a/Makefile +++ b/Makefile @@ -60,16 +60,17 @@ uninstall: change: scripts/change.sh -noroot_clean: - @rm -rf toybox generated change .singleconfig* - -clean:: noroot_clean +root_clean: @rm -rf root + @echo root cleaned + +clean:: + @rm -rf toybox generated change .singleconfig* @echo cleaned # If singlemake was in generated/ "make clean; make test_ls" wouldn't work. -distclean: clean - @rm -f toybox_old .config* .singlemake +distclean: clean root_clean + @rm -f toybox* .config* .singlemake @echo removed .config tests: @@ -80,7 +81,7 @@ root: run_root: C=$$(basename "$$CROSS_COMPILE" | sed 's/-.*//'); \ - cd root/"$${C:-host}" && ./qemu-*.sh || exit 1 + cd root/"$${C:-host}" && ./qemu-*.sh $(MAKEFLAGS) || exit 1 help:: @cat scripts/help.txt -- cgit v1.2.3