commit | 16ca8c518fc44417fba0e0168f3a2e3dcb3f0a3c | [log] [tgz] |
---|---|---|
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | Sun May 01 14:06:40 2022 +0300 |
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | Sun May 01 14:11:52 2022 +0300 |
tree | f12e88e84498f83603fc3e23e66a7c7d7c1da2c5 | |
parent | 4cad0c3873020ad5a3a8250128d52644fc5958fd [diff] |
nanopb.mk Makefile rules: fix options dependency (#666) Files were not being regenerated when .options changed.
diff --git a/extra/nanopb.mk b/extra/nanopb.mk index 279515f..d60b37d 100644 --- a/extra/nanopb.mk +++ b/extra/nanopb.mk
@@ -32,6 +32,9 @@ endif # Rule for building .pb.c and .pb.h -%.pb.c %.pb.h: %.proto $(wildcard %.options) +%.pb.c %.pb.h: %.proto %.options + $(PROTOC) $(PROTOC_OPTS) --nanopb_out=. $< + +%.pb.c %.pb.h: %.proto $(PROTOC) $(PROTOC_OPTS) --nanopb_out=. $<