From 6a4dd8790c5c98466087a5374611f72131eff958 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 2 May 2022 05:58:26 -0700 Subject: web: generate all required files in new dir --- web/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'web/Makefile') diff --git a/web/Makefile b/web/Makefile index bdddb14..66d88f7 100644 --- a/web/Makefile +++ b/web/Makefile @@ -6,16 +6,18 @@ CFLAGS += -O3 -Wall -Wextra -Wno-unknown-warning-option -I../ \ -sEXPORTED_FUNCTIONS=_main,_malloc,_free \ -sEXPORTED_RUNTIME_METHODS=UTF8ToString,stringToUTF8,lengthBytesUTF8 -TARGET := static/dartboat_wasm.js +TARGET := dartboat_web SRC := $(wildcard *.c) ../comp.c ../match.c ../board.c ../checkouts.c all: $(TARGET) $(TARGET): $(SRC) - $(CC) $(CFLAGS) $^ -o $@ + mkdir $(TARGET) + $(CC) $(CFLAGS) $^ -o $(TARGET)/dartboat_wasm.js + cp static/* $(TARGET)/ clean: - rm -f $(TARGET) $(TARGET:.js=.wasm) + rm -rf $(TARGET) .PHONY: all clean -- cgit v1.2.3-70-g09d2