-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
64 lines (46 loc) · 933 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
all:
@echo "Usage: make [swift|rust|go|deno|bun|node|zig|cs|ruby|dart|php|python|fpc|lua|q|clean]"
swift:
swift build && swift run http-server
rust:
cargo run -p http-server
go:
go run main.go
deno:
deno run -A --watch main-deno.ts
bun:
bun run main-bun.ts
node:
node main.js
zig:
zig run main.zig
ruby:
bundle install
ruby main.rb
dart:
dart main.dart
php:
php -S localhost:8000 main.php
python:
uv venv
source ./.venv/bin/activate \
&& uv pip install -r requirements.txt \
&& fastapi dev main.py
fpc:
fpc -oexe main.pas && ./exe
lua:
for package in luasocket dkjson copas; do luarocks install $$package; done
lua main.lua
cs:
dotnet run -c Release
perl:
cpan Mojolicious
perl main.pl
d:
dub
q:
curl -q http://localhost:8000/version
clean:
-rm -rf .build .venv .bundle exe _build .nuget main.exe main.o http-server target
-find . -type d -name "__pycache__" -exec rm -r {} +
cargo clean