-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgmakefile
More file actions
19 lines (17 loc) · 876 Bytes
/
Copy pathgmakefile
File metadata and controls
19 lines (17 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;;; gmakefile for Tinyscript
;;; Build system for the libre JS alternative
(default-target "all")
;; target: name doc deps actions
(target "all" "Build everything" '("check" "bundle") '())
(target "check" "Run all tests" '("hello") '())
(target "hello" "Run hello.ts example" '("build")
'("GUILE_AUTO_COMPILE=0 guile -L src -e main -s src/tinyscript.scm examples/hello.ts"))
(target "build" "Create build dir" '()
'("mkdir -p build"))
(target "bundle" "Bundle FF extension" '("build")
'("cd src/extension && zip -r ../../build/tinyscript-extension.zip ."))
(target "install" "Install to build/" '("build")
'("cp src/tinyscript.scm build/tinyscript"
"chmod +x build/tinyscript"))
(target "clean" "Remove build artifacts" '()
'("rm -rf build"))