-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (25 loc) · 981 Bytes
/
Makefile
File metadata and controls
30 lines (25 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
TITLE = wasmlite
DEBUG = 1
ESBUILD = esbuild --format=esm --bundle libjs/loader.js --minify --define:BUNDLER=1
ifeq ($(DEBUG),1)
ESBUILD += --sourcemap
endif
js:
@$(ESBUILD)
html:
@(echo "<!DOCTYPE html><title>$(TITLE)</title><style>:root{color-scheme:light dark;}</style><script type='module'>"; $(ESBUILD); echo "</script>")
serve:
esbuild --servedir=.
cp:
$(MAKE) -s html > ../Client3/index.html
$(MAKE) -s html > ../playground/index.html
$(MAKE) -s html > ../forks/PL3D-KC/index.html
$(MAKE) -s html > ../forks/doomgeneric/doomgeneric/index.html
$(MAKE) -s html > ../forks/quakegeneric/source/index.html
$(MAKE) -s html > ../forks/gdkGBA/index.html
$(MAKE) -s html > ../forks/LakeSnes/index.html
$(MAKE) -s html > ../forks/agbemu/index.html
$(MAKE) -s html > ../forks/ntremu/index.html
$(MAKE) -s html > ../forks/agnes/examples/index.html
$(MAKE) -s html > ../forks/Peanut-GB/examples/sdl2/index.html
$(MAKE) -s html > ../forks/minecraft-weekend/index.html