Skip to content

Commit

Permalink
Ensure optional Wasm bin scripts are installed
Browse files Browse the repository at this point in the history
Follow-up to #368.
  • Loading branch information
georgestagg committed Mar 13, 2024
1 parent 780fbc7 commit 2f28ec1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ $(EM_PKG_CONFIG_PATH)/%.pc: recipes/**/%.pc
mkdir -p $(EM_PKG_CONFIG_PATH)
cp "$<" "$@"

$(HOST)/bin/%: $(WASM)/bin/%
$(DEFAULT_WASM_BINS_INST): $(DEFAULT_WASM_LIBS)
@mkdir -p $(HOST)/bin
cp "$<" "$@"
cp "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"

$(DEFAULT_WASM_BINS_INST): $(DEFAULT_WASM_LIBS)
$(OPTIONAL_WASM_BINS_INST): $(OPTIONAL_WASM_LIBS)
@mkdir -p $(HOST)/bin
cp "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"

.PHONY: clean-bins
clean-bins:
Expand Down

0 comments on commit 2f28ec1

Please sign in to comment.