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.
This commit is contained in:
Petteri Aimonen
2014-01-01 11:20:07 +02:00
parent 18e71bbfe2
commit 4546bb92dc
3 changed files with 6 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ CFLAGS += -I$(NANOPB_DIR)
all: server client
.SUFFIXES:
clean:
rm -f server client fileproto.pb.c fileproto.pb.h

View 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

View 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