Remove fakeroot files after use to avoid rerun
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Wed, 15 Aug 2007 09:47:49 +0000 (09:47 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Wed, 15 Aug 2007 09:47:49 +0000 (09:47 -0000)
Makefile

index 89e6caef13dba10e777abbb7ae2e7d0edf29b4ae..fabc3a81f6e7df655034cb9d14dc37790277327c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -199,6 +199,8 @@ include package/*/*.mk
 # target stuff is last so it can override anything else
 include target/Makefile.in
 
+TARGETS+=erase-fakeroots
+
 TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
 TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS))
 TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
@@ -255,6 +257,8 @@ $(PROJECT_BUILD_DIR)/.root:  $(TARGET_DIR)
        fi;
        touch   $@
 
+erase-fakeroots:
+       rm -f $(STAGING_DIR)/.fakeroot*
 
 source: $(TARGETS_SOURCE) $(HOST_SOURCE)