aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-01-01 11:20:07 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-01-01 11:20:54 +0200
commit4546bb92dc332ebbfb05a7517028f967b0657725 (patch)
tree164aa1d8fb04779b4d5906f00ae5d89226a3b3f7
parent18e71bbfe2907fa759fad09e8c5c13655e33a590 (diff)
Fix Makefiles for the examples
The default rules for make were being selected before our own rules and the .pb.c was not being built.
-rw-r--r--examples/network_server/Makefile2
-rw-r--r--examples/using_double_on_avr/Makefile2
-rw-r--r--examples/using_union_messages/Makefile2
3 files changed, 6 insertions, 0 deletions
diff --git a/examples/network_server/Makefile b/examples/network_server/Makefile
index 3c014009..2c7639a1 100644
--- a/examples/network_server/Makefile
+++ b/examples/network_server/Makefile
@@ -7,6 +7,8 @@ CFLAGS += -I$(NANOPB_DIR)
all: server client
+.SUFFIXES:
+
clean:
rm -f server client fileproto.pb.c fileproto.pb.h
diff --git a/examples/using_double_on_avr/Makefile b/examples/using_double_on_avr/Makefile
index 6f2203ae..874a64bd 100644
--- a/examples/using_double_on_avr/Makefile
+++ b/examples/using_double_on_avr/Makefile
@@ -7,6 +7,8 @@ CFLAGS += -I$(NANOPB_DIR)
all: run_tests
+.SUFFIXES:
+
clean:
rm -f test_conversions encode_double decode_double doubleproto.pb.c doubleproto.pb.h
diff --git a/examples/using_union_messages/Makefile b/examples/using_union_messages/Makefile
index 618bca50..66396a02 100644
--- a/examples/using_union_messages/Makefile
+++ b/examples/using_union_messages/Makefile
@@ -10,6 +10,8 @@ all: encode decode
./encode 2 | ./decode
./encode 3 | ./decode
+.SUFFIXES:
+
clean:
rm -f encode unionproto.pb.h unionproto.pb.c