-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (32 loc) · 940 Bytes
/
Makefile
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
31
32
33
34
35
36
37
38
dart:
mkdir dist || exit 0;
dart compile exe ./src-dart/lnstat.dart
mkdir ./dist/dart || exit 0;
mv ./src-dart/lnstat.exe ./dist/dart/lnstat
ts:
mkdir dist || exit 0;
rm ./dist/node -r || exit 0;
rm ./dist/standalone -r || exit 0;
mkdir ./dist/node
mkdir ./dist/standalone
npx esbuild --minify --loader=ts < ./src-ts/lnstat.ts > ./dist/node/lnstat.js
zig build-exe -O ReleaseSmall -femit-bin=dist/node/lnstat ./src-ts/main.zig
rm dist/node/lnstat.o
pkg -t node16 -o ./dist/standalone/lnstat ./dist/node/lnstat.js
shermes:
cd src-shermes && bash build.sh
rm ./dist/shermes -r || exit 0;
mkdir ./dist/shermes
mv ./src-shermes/lnstat ./dist/shermes/lnstat
_build:
chmod 755 ./build.sh
./build.sh
deb-ts-node:
bun run deb-metadata-generator.ts node
$(MAKE) _build
deb-ts-standalone:
bun run deb-metadata-generator.ts node-standalone
$(MAKE) _build
deb-dart:
bun run deb-metadata-generator.ts dart
$(MAKE) _build