Skip to content

Commit

Permalink
WebAssembly makefile minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vpyk committed Jul 19, 2024
1 parent 0b04eb2 commit 8d70241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.wasm
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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:
Expand Down

0 comments on commit 8d70241

Please sign in to comment.