Skip to contentSkip to conversation

Add targetclean Makefile target

RFC PATCH New Martin Hicks 1 participant 1 message Mar 17, 2011

lore
Share & tools
lore
#0 lore raw

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