2023-05-19 01:06:39 +02:00
|
|
|
all: build
|
|
|
|
|
2024-01-20 02:46:24 +01:00
|
|
|
clone-generic-parser:
|
2024-01-20 05:00:03 +01:00
|
|
|
[ ! -d ../parser ] && cd .. && git clone ssh://_gitea@git.baguette.netlib.re:2299/Baguette/parser.git || :
|
2024-01-20 02:46:24 +01:00
|
|
|
|
|
|
|
build: clone-generic-parser
|
2023-05-30 23:13:24 +02:00
|
|
|
spago build
|
2023-05-19 01:06:39 +02:00
|
|
|
|
2023-06-08 16:31:51 +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
|
|
|
|
2023-05-19 15:45:41 +02:00
|
|
|
repl:
|
|
|
|
spago repl
|
|
|
|
|
2023-05-19 01:06:39 +02:00
|
|
|
spagobuild:
|
|
|
|
spago build
|
|
|
|
|
2024-02-16 02:36:48 +01:00
|
|
|
docs-with-search:
|
2023-07-08 15:52:08 +02:00
|
|
|
spago docs
|
|
|
|
|
2024-02-16 02:36:48 +01:00
|
|
|
docs:
|
|
|
|
spago docs --no-search
|
|
|
|
|
2023-07-08 15:52:08 +02:00
|
|
|
DOCS_HTTPD_ACCESS_LOGS ?= /tmp/docs-access.log
|
|
|
|
DOCS_HTTPD_ADDR ?= 127.0.0.1
|
2024-02-16 02:36:48 +01:00
|
|
|
DOCS_HTTPD_PORT ?= 31000
|
2023-07-08 15:52:08 +02:00
|
|
|
DOCS_DIR ?= generated-docs/html
|
|
|
|
serve-docs: docs
|
|
|
|
darkhttpd $(DOCS_DIR) --addr $(DOCS_HTTPD_ADDR) --port $(DOCS_HTTPD_PORT) --log $(DOCS_HTTPD_ACCESS_LOGS)
|
|
|
|
|
2023-06-08 16:31:51 +02:00
|
|
|
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:
|
2023-06-08 16:31:51 +02:00
|
|
|
# npm run serve
|
2023-05-19 01:06:39 +02:00
|
|
|
|
|
|
|
# You can add your specific instructions there.
|
|
|
|
-include makefile.user
|