aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-09-07 00:30:59 -0500
committerRob Landley <rob@landley.net>2019-09-07 00:30:59 -0500
commit7a58225c170e9a416fec9986e90d554dfb57f7cb (patch)
tree86be6fb34a295f336a5f2c3591442c202022524d /Makefile
parent504fec23952355af514759ed61eeecf5a5c1bd80 (diff)
downloadtoybox-7a58225c170e9a416fec9986e90d554dfb57f7cb.tar.gz
Fix up clean so we clean up after toybox-$TARGET and can do cross.sh all.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
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