fix(library/Makefile.common): avoid error message when .d files do not exist

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-08-01 10:11:01 -07:00
parent fe7ed20058
commit d27c85e30c
2 changed files with 7 additions and 2 deletions

View file

@ -20,7 +20,7 @@ all: $(OLEAN_FILES) $(DEP_FILES)
@rm -f $@.tmp.1
@rm -f $@.tmp.2
include $(LEAN_FILES:.lean=.d)
-include $(LEAN_FILES:.lean=.d)
.PHONY: all clean

View file

@ -328,4 +328,9 @@ endif()
add_custom_target(clean-olean
WORKING_DIRECTORY ${LEAN_SOURCE_DIR}/../library
COMMAND find . -name '*.olean' -exec rm -f '{}' '\;'
)
)
add_custom_target(clean-d
WORKING_DIRECTORY ${LEAN_SOURCE_DIR}/../library
COMMAND find . -name '*.d' -exec rm -f '{}' '\;'
)