diff options
author | Rob Landley <rob@landley.net> | 2019-09-07 00:30:59 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-09-07 00:30:59 -0500 |
commit | 7a58225c170e9a416fec9986e90d554dfb57f7cb (patch) | |
tree | 86be6fb34a295f336a5f2c3591442c202022524d /Makefile | |
parent | 504fec23952355af514759ed61eeecf5a5c1bd80 (diff) | |
download | toybox-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-- | Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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 |