feat(library/Makefile.common): use new --cache/-c option at Makefile.common
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
f896771987
commit
f319d084d4
3 changed files with 4 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,6 +4,7 @@
|
||||||
*.md.lua
|
*.md.lua
|
||||||
*.md.lean
|
*.md.lean
|
||||||
*.olean
|
*.olean
|
||||||
|
*.clean
|
||||||
*.d
|
*.d
|
||||||
a.out
|
a.out
|
||||||
build
|
build
|
||||||
|
|
|
@ -8,7 +8,7 @@ all: $(OLEAN_FILES) $(DEP_FILES)
|
||||||
|
|
||||||
%.olean: %.lean
|
%.olean: %.lean
|
||||||
@rm -f $@
|
@rm -f $@
|
||||||
$(LEAN) $(LEAN_OPTIONS) $< -o $@
|
$(LEAN) $(LEAN_OPTIONS) $< -o $@ -c $(@:.olean=.clean)
|
||||||
|
|
||||||
%.d: %.lean
|
%.d: %.lean
|
||||||
@echo Making dependency file \'$@\' ...
|
@echo Making dependency file \'$@\' ...
|
||||||
|
@ -25,4 +25,5 @@ all: $(OLEAN_FILES) $(DEP_FILES)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
find . -type f -name "*.olean" -delete
|
find . -type f -name "*.olean" -delete
|
||||||
|
find . -type f -name "*.clean" -delete
|
||||||
find . -type f -name "*.d" -delete
|
find . -type f -name "*.d" -delete
|
||||||
|
|
|
@ -330,5 +330,5 @@ endif()
|
||||||
|
|
||||||
add_custom_target(clean-olean
|
add_custom_target(clean-olean
|
||||||
WORKING_DIRECTORY ${LEAN_SOURCE_DIR}/../library
|
WORKING_DIRECTORY ${LEAN_SOURCE_DIR}/../library
|
||||||
COMMAND find . -type f -name '*.olean' -delete && find . -type f -name '*.d' -delete
|
COMMAND find . -type f -name '*.olean' -delete && find . -type f -name '*.d' -delete && find . -type f -name '*.clean' -delete
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue