Add targetclean Makefile target
RFC PATCH 1/1 Add targetclean Makefile target
Hi,
I have scripts that hack around with the root filesystem prior to image creation, so I wanted a way to remove $(TARGET_DIR) and reinstall it without doing a wholesale 'make clean; make'. This is what I came up with. It only works with external toolchain.
Comments? This seems fragile, but it also doesn't require that every package have an uninstall target, and additionally handles the case where pre-image-generation scripts mangle contents of $TARGET_DIR
mh