]> git.eli173.com Git - klapaucius/commitdiff
make target for web now includes documentation more nicely main v-12.13.14
authorElijah Cohen <eli@eli173.com>
Sun, 1 Dec 2024 23:27:40 +0000 (17:27 -0600)
committerElijah Cohen <eli@eli173.com>
Sun, 1 Dec 2024 23:27:40 +0000 (17:27 -0600)
src/Makefile

index 4246aba6660a6414be88348787dce828a4e9dbf6..9a798ce5633af14fe0ff6353734583773f116746 100644 (file)
@@ -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)