mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
build: mark .wasm files as intermediate for cleanup after building .ndp
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
3d14349b99
commit
034e8af90b
@ -52,6 +52,9 @@ clean:
|
||||
rm -f $(PLUGINS:%=%.wasm) $(PYTHON_PLUGINS:%=%.wasm) $(RUST_PLUGINS:%=%.wasm)
|
||||
@$(foreach p,$(RUST_PLUGINS),(cd $(p) && cargo clean 2>/dev/null) || true;)
|
||||
|
||||
# Mark .wasm files as intermediate so Make deletes them after building .ndp
|
||||
.INTERMEDIATE: $(PLUGINS:%=%.wasm) $(PYTHON_PLUGINS:%=%.wasm) $(RUST_PLUGINS:%=%.wasm)
|
||||
|
||||
# Build .ndp package from .wasm and manifest.json
|
||||
# Go plugins
|
||||
%.ndp: %.wasm %/manifest.json
|
||||
@ -59,6 +62,7 @@ clean:
|
||||
@cp $< plugin.wasm
|
||||
zip -j $@ $*/manifest.json plugin.wasm
|
||||
@rm -f plugin.wasm
|
||||
@mv $< $<.tmp && mv $<.tmp $< # Touch wasm to ensure it's older than ndp
|
||||
|
||||
# Use secondary expansion to properly track all Go source files
|
||||
.SECONDEXPANSION:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user