-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
73 lines (56 loc) · 1.11 KB
/
Justfile
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
65
66
67
68
69
70
71
72
73
set working-directory := 'samples'
alias help := _help
@_help:
just --list
# Runs all hello world scripts
@all: \
ada \
asm \
c \
c3 \
crystal \
cpp \
java \
js \
lua \
perl \
python \
rust \
sh
# Languages
@ada:
gnatmake -o /tmp/hello_ada hello_world.ada &>/dev/null
/tmp/hello_ada
# (x86 Intel)
@asm:
as -msyntax=intel -mnaked-reg -o /tmp/build.asm hello_world.asm
ld -s -o /tmp/hello_asm /tmp/build.asm
/tmp/hello_asm
@c:
gcc -Wextra -Wall -O2 -o /tmp/hello_c hello_world.c
/tmp/hello_c
@c3:
c3c compile -O1 -o /tmp/hello_c3 hello_world.c3 &>/dev/null
/tmp/hello_c3
@cpp:
g++ -Wextra -Wall -O2 -o /tmp/hello_cpp hello_world.cpp
/tmp/hello_cpp
@crystal:
crystal build --release -o /tmp/hello_crystal hello_world.cr
/tmp/hello_crystal
@java:
java hello_world.java
# (NodeJS)
@js:
node hello_world.js
@lua:
lua hello_world.lua
@perl:
perl hello_world.pl
@python:
python hello_world.py
@rust:
rustc -O -o /tmp/hello_rust hello_world.rs
/tmp/hello_rust
@sh:
./hello_world.sh