OSDN Git Service

Preserve symlinked OUT_DIR by only clearing contents
authorAlan Viverette <alanv@google.com>
Tue, 25 Mar 2014 00:24:35 +0000 (17:24 -0700)
committerAlan Viverette <alanv@google.com>
Tue, 8 Apr 2014 01:55:05 +0000 (18:55 -0700)
Change-Id: I824ecd46d7fd31885024ff20cf5cbd52e2cbb713

core/main.mk

index 992f6e1..1048c9b 100644 (file)
@@ -1033,7 +1033,7 @@ findbugs: $(INTERNAL_FINDBUGS_HTML_TARGET) $(INTERNAL_FINDBUGS_XML_TARGET)
 
 .PHONY: clean
 clean:
-       @rm -rf $(OUT_DIR)
+       @rm -rf $(OUT_DIR)/*
        @echo "Entire build directory removed."
 
 .PHONY: clobber