From: Elijah Cohen Date: Sun, 1 Dec 2024 23:27:40 +0000 (-0600) Subject: make target for web now includes documentation more nicely X-Git-Tag: v-12.13.14^0 X-Git-Url: https://git.eli173.com/?a=commitdiff_plain;p=klapaucius make target for web now includes documentation more nicely --- diff --git a/src/Makefile b/src/Makefile index 4246aba..9a798ce 100644 --- a/src/Makefile +++ b/src/Makefile @@ -5,6 +5,7 @@ SRCS:= $(wildcard *.c */*.c) BUILD:= ../build +DOC:= ../doc BIN:=repl TEST_BIN:=test OBJS:= $(patsubst %.c,$(BUILD)/%.o,$(SRCS)) @@ -44,13 +45,16 @@ $(WEB_OBJS): $(WEB_BUILD)/%.o:%.c Makefile .PHONY: web web: $(WEB_OBJS) emcc $(WEB_OBJS) --shell-file $(WEB_SHELL) -o $(WEB_BUILD)/klrepl.html -s NO_EXIT_RUNTIME=1 -s "EXPORTED_RUNTIME_METHODS=['ccall']" --preload-file ../demos.kl@demos.kl - mkdir -p $(WEB_BUILD)/../static - cp $(WEB_BUILD)/../kl.png $(WEB_BUILD)/../static - cp $(WEB_BUILD)/../manifest.json $(WEB_BUILD)/../static - cp $(WEB_BUILD)/klrepl.data $(WEB_BUILD)/../static - cp $(WEB_BUILD)/klrepl.js $(WEB_BUILD)/../static - cp $(WEB_BUILD)/klrepl.wasm $(WEB_BUILD)/../static - cp $(WEB_BUILD)/klrepl.html $(WEB_BUILD)/../static/index.html + mkdir -p $(WEB_BUILD)/../static/repl + cp $(WEB_BUILD)/../kl.png $(WEB_BUILD)/../static/repl + cp $(WEB_BUILD)/../manifest.json $(WEB_BUILD)/../static/repl + cp $(WEB_BUILD)/klrepl.data $(WEB_BUILD)/../static/repl + cp $(WEB_BUILD)/klrepl.js $(WEB_BUILD)/../static/repl + cp $(WEB_BUILD)/klrepl.wasm $(WEB_BUILD)/../static/repl + cp $(WEB_BUILD)/klrepl.html $(WEB_BUILD)/../static/repl/index.html + cp $(DOC)/index.html $(WEB_BUILD)/../static + cp $(DOC)/style.css $(WEB_BUILD)/../static + cp $(DOC)/builtins.html $(WEB_BUILD)/../static .PHONY: test test: $(TEST_OBJS)