Add fetch_cvd to the standalone build artifacts.
Bug: 137304531
Test: make -j
Change-Id: Ie93c52adf654f30e73f45067c791f9c4308fbadf
diff --git a/fetcher.mk b/fetcher.mk
new file mode 100644
index 0000000..e00b1df
--- /dev/null
+++ b/fetcher.mk
@@ -0,0 +1,12 @@
+bin_path := $(notdir $(HOST_OUT_EXECUTABLES))
+
+fetcher_bin := $(HOST_OUT)/$(bin_path)/fetch_cvd
+
+.PHONY: host_fetcher
+host_fetcher: $(fetcher_bin)
+
+# Build this by default when a developer types make
+droidcore: $(fetcher_bin)
+
+# Build and store them on the build server.
+$(call dist-for-goals, dist_files, $(fetcher_bin))