Makefile consistency changes: (#3)
- make (no options) triggers build
- make clean: simple clean of local files
- make test: build and run the defined tests
- make build: build the binaries
- make image: build the binaries and the docker images
diff --git a/Makefile b/Makefile
index d49647a..667b646 100644
--- a/Makefile
+++ b/Makefile
@@ -41,15 +41,20 @@
build: $(SI_PROTO).tmp
$(MAKE) -C lib/go
+# Set a empty recipe used in the internal build
+.PHONY: test
+test:
+ @echo ""
+
# Simple clean of generated files only (no local cleanup).
+.PHONY: clean
clean:
cd $(BASE_DIR) && \
$(MAKE) -C lib/go $@
# Remove all non versioned files,
# Running this target will trigger a re-install of protoc etc in te next build cycle.
+.PHONY: clobber
clobber:
cd $(BASE_DIR) && \
$(MAKE) -C lib/go $@
-
-.PHONY: clean clobber