Fix Makefiles for the examples
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Wed, 1 Jan 2014 09:20:07 +0000 (11:20 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Wed, 1 Jan 2014 09:20:54 +0000 (11:20 +0200)
The default rules for make were being selected before our own rules
and the .pb.c was not being built.

examples/network_server/Makefile
examples/using_double_on_avr/Makefile
examples/using_union_messages/Makefile

index 3c01400..2c7639a 100644 (file)
@@ -7,6 +7,8 @@ CFLAGS += -I$(NANOPB_DIR)
 
 all: server client
 
+.SUFFIXES:
+
 clean:
        rm -f server client fileproto.pb.c fileproto.pb.h
 
index 6f2203a..874a64b 100644 (file)
@@ -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
 
index 618bca5..66396a0 100644 (file)
@@ -10,6 +10,8 @@ all: encode decode
        ./encode 2 | ./decode
        ./encode 3 | ./decode
 
+.SUFFIXES:
+
 clean:
        rm -f encode unionproto.pb.h unionproto.pb.c