feat: add help target to Makefile for plugin usage instructions

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-12-26 14:26:55 -05:00
parent dd238e74fb
commit 513c969c40

View File

@ -5,6 +5,18 @@ PLUGINS := $(patsubst %/go.mod,%,$(wildcard */go.mod))
# Prefer tinygo if available, it produces smaller wasm binaries.
TINYGO := $(shell command -v tinygo 2> /dev/null)
# Default target: show available plugins
.DEFAULT_GOAL := help
help:
@echo "Available plugins:"
@$(foreach p,$(PLUGINS),echo " $(p)";)
@echo ""
@echo "Usage:"
@echo " make <plugin> Build a specific plugin (e.g., make $(firstword $(PLUGINS)))"
@echo " make all Build all plugins"
@echo " make clean Remove all built plugins"
all: $(PLUGINS:%=%.wasm)
clean: