halogen-websocket-ipc-playzone/makefile

33 lines
627 B
Makefile
Raw Permalink Normal View History

2023-05-19 01:06:39 +02:00
all: build
build:
2023-05-30 23:13:24 +02:00
spago build
2023-05-19 01:06:39 +02:00
bundle: install-esbuild
PATH=$$PATH:node_modules/.bin spago bundle-app
mv index.js app/
2023-05-19 01:06:39 +02:00
repl:
spago repl
2023-05-19 01:06:39 +02:00
spagobuild:
spago build
install-esbuild:
@echo "install ebbuild"
[ -f node_modules/.bin/esbuild ] || npm install esbuild
HTTPD_ACCESS_LOGS ?= /tmp/access.log
HTTPD_ADDR ?= 127.0.0.1
HTTPD_PORT ?= 35000
DIR ?= app
serve:
darkhttpd $(DIR) --addr $(HTTPD_ADDR) --port $(HTTPD_PORT) --log $(HTTPD_ACCESS_LOGS)
# NPM can serve it, but it's slow for nothing.
2023-05-19 01:06:39 +02:00
#serve:
# npm run serve
2023-05-19 01:06:39 +02:00
# You can add your specific instructions there.
-include makefile.user