-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.json
30 lines (30 loc) · 897 Bytes
/
commands.json
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
{
"build": {
"c++": "g++ main.cpp -o main",
"java": "javac Main.java",
"objc": ". /usr/share/GNUstep/Makefiles/GNUstep.sh && clang $(gnustep-config --objc-flags) -I /usr/lib/gcc/x86_64-linux-gnu/12/include -o main main.m $(gnustep-config --base-libs)",
"haskell": "cabal update && cabal build"
},
"base": {
"c++": "./main",
"java": "java Main",
"scala": "sbt",
"rust": "cargo run",
"objc": "./main",
"go": "/usr/local/go/bin/go run main.go",
"haskell": "cabal run haskell --",
"javascript": "node main.js",
"php": "php main.php",
"python": "python3 main.py",
"ruby": "ruby main.rb",
"perl": "perl main.pl"
},
"clean": {
"c++": "rm -f main",
"java": "rm -f Main.class",
"scala": "rm -rf target",
"rust": "rm -rf target",
"objc": "rm -f main && rm -rf main.d",
"haskell": "rm -rf dist-newstyle"
}
}