1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-03-10 21:25:31 +00:00

cleanup make tsweb subprocesses on ctrl-c

This commit is contained in:
Fred Sauer
2026-02-22 12:42:05 -08:00
parent db80ffcb2e
commit 4dd1d5e09b

View File

@@ -55,14 +55,16 @@ distro: buildtsc
rm -r $(TMP)/doc $(TMP)/scripts $(TMP)/test* $(TMP)/tools $(TMP)/.[a-z]* $(TMP)/ts*.json # $(TMP)/meta
rm -f $(TMP)/javatari && mkdir -p $(TMP)/javatari && cp -p javatari.js/release/javatari/* $(TMP)/javatari/
tsweb: submodules buildgrammars
tsweb: submodules node_modules
npm run esbuild-clean
(ip addr || ifconfig) | grep inet
$(TSC) -w --preserveWatchOutput &
make watchgrammars &
sleep 9999999 | npm run esbuild-worker -- --watch &
sleep 9999999 | npm run esbuild-ui -- --watch &
python3 scripts/serveit.py 2>> /dev/null #http.out
trap 'kill 0' EXIT; \
$(TSC) -w --preserveWatchOutput & \
make watchgrammars & \
npm run esbuild-worker -- --watch & \
npm run esbuild-ui -- --watch & \
python3 scripts/serveit.py 2>> /dev/null & \
wait
astrolibre.b64.txt: astrolibre.rom
lzg -9 $< | base64 -w 0 > $@