feat(library/Makefile.common): add dependency on bin/version
This is related with issue #43. [skip ci]
This commit is contained in:
parent
87632622ee
commit
6f2c14be23
1 changed files with 3 additions and 2 deletions
|
@ -3,14 +3,15 @@ DIR = $(shell pwd)
|
|||
LEAN_FILES = $(shell find $(DIR) -type f -name '*.lean')
|
||||
OLEAN_FILES = $(LEAN_FILES:.lean=.olean)
|
||||
DEP_FILES = $(LEAN_FILES:.lean=.d)
|
||||
LEAN_VERSION_FILE = $(shell dirname $(LEAN))/version
|
||||
|
||||
all: $(OLEAN_FILES) $(DEP_FILES)
|
||||
|
||||
%.olean: %.lean
|
||||
%.olean: %.lean $(LEAN_VERSION_FILE)
|
||||
@rm -f $@
|
||||
$(LEAN) $(LEAN_OPTIONS) $< -o $@ -c $(@:.olean=.clean)
|
||||
|
||||
%.d: %.lean
|
||||
%.d: %.lean $(LEAN_VERSION_FILE)
|
||||
@echo Making dependency file \'$@\' ...
|
||||
@rm -f $@
|
||||
@rm -f $@.tmp
|
||||
|
|
Loading…
Reference in a new issue