From 4546bb92dc332ebbfb05a7517028f967b0657725 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Wed, 1 Jan 2014 11:20:07 +0200 Subject: 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. --- examples/network_server/Makefile | 2 ++ examples/using_double_on_avr/Makefile | 2 ++ examples/using_union_messages/Makefile | 2 ++ 3 files changed, 6 insertions(+) (limited to 'examples') 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 -- cgit 1.2.3-korg