From 8d7024193545d02bdfa0fc179a2ce8b5a9b0c856 Mon Sep 17 00:00:00 2001 From: Viktor Pykhonin Date: Fri, 19 Jul 2024 13:28:50 +0300 Subject: [PATCH] WebAssembly makefile minor fixes --- Makefile.wasm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.wasm b/Makefile.wasm index 5690d74d..60e3f3a5 100644 --- a/Makefile.wasm +++ b/Makefile.wasm @@ -22,7 +22,7 @@ OBJECTS := $(patsubst $(SRC_DIR)/%,$(OBJ_DIR)/%,$(SOURCES:.cpp=.o)) DEPENDS := $(patsubst $(SRC_DIR)/%,$(OBJ_DIR)/%,$(SOURCES:.cpp=.d)) SRC_WEB_FILES := $(foreach file,$(SRC_WEB_FILES),$(SRC_DIR)/wasm/web/$(file)) -WEB_FILES := $(foreach file,$(SRC_WEB_FILES),$(BUILD_DIR)/$(file)) +WEB_FILES := $(foreach file,$(SRC_WEB_FILES),$(BUILD_DIR)/$(notdir $(file))) all: $(TARGETS) $(WEB_FILES) @@ -38,7 +38,7 @@ $(DEPENDS): $(OBJ_DIR)/%.d: $(SRC_DIR)/%.cpp $(EMCC) -MM -MP -MT"$(@:.d=.o)" $(EMFLAGS) $< > $@ $(WEB_FILES): $(SRC_WEB_FILES) - @mkdir -p $(dir $@) + @mkdir -p $(BUILD_DIR) cp -f $(SRC_WEB_FILES) $(BUILD_DIR) clean: