mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
feat: add help target to Makefile for plugin usage instructions
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
dd238e74fb
commit
513c969c40
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user