Fix codecs target in Makefile
@@ -11,11 +11,16 @@ test:
codecs: protobufs ffjson
-protobufs:
- - rm ./**/*.pb.go
+protobufs: clean-protobufs
protoc --proto_path="${PROTO_PATH}" --gogo_out=. *.proto
protoc --proto_path="${PROTO_PATH}" --gogo_out=. ./scheduler/*.proto
-ffjson:
- - rm ./**/*ffjson.go
- ffjson ./**/*.pb.go
+clean-protobufs:
+ -rm *.pb.go **/*.pb.go
+
+ffjson: clean-ffjson
+ ffjson *.pb.go
+ ffjson **/*.pb.go
+
+clean-ffjson:
+ -rm *ffjson.go **/*ffjson.go
