Skip to content

Commit

Permalink
chore: ensure cfbc version
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian committed Apr 8, 2019
1 parent 2e5d56a commit 646e5ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ examples:
ci: fmt clippy test examples
git diff --exit-code Cargo.lock

%_generated_verifier.rs: %.fbs
check-cfbc-version:
test "$$($(CFBC) --version)" = 0.1.8

%_generated_verifier.rs: %.fbs check-cfbc-version
$(FLATC) -b --schema -o $(shell dirname $@) $<
$(CFBC) -o $(shell dirname $@) $*.bfbs
rm -f $*_builder.rs $*.bfbs
Expand All @@ -40,5 +43,4 @@ clean-fb:
rm -f $(FLATC_RUST_FILES) $(FLATBUFFERS_VERIFIER_FILES)



.PHONY: fmt clippy test examples ci gen-fb clean-fb
.PHONY: fmt clippy test examples ci gen-fb clean-fb check-cfbc-version

0 comments on commit 646e5ec

Please sign in to comment.