-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrusty.txt.concept
72 lines (67 loc) · 1.54 KB
/
rusty.txt.concept
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
compiler: "gcc";
#Lukáš Hozda(c), 2015-2017
#
#Usage of the works is permitted provided that this
#instrument is retained with the works, so that any
#entity that uses the works is notified of this instrument.
#
#DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
#also disclaimer: this license text is here mainly to test comments
target obj_test:
name: "lib";
type: object;
flags: { "-Wall" };
output: ".";
install: { "can't install target obj_test" };
file: "lib.c"
if(windows)
{
target rusty_:
name: "rusty";
type: executable;
flags: { "-Wall" };
output: ".";
file: "mpc.c";
file: "rusty.c";
}
if(linux)
{
target rusty_:
name: "rusty";
type: executable;
flags: { "-Wall" };
output: ".";
install:
{
"cp ./rusty /usr/bin/rusty",
"echo $HOME",
"export POTATO=tato"
};
file: "mpc.c";
file: "rusty.c @depends("arg.h")";
}
target rusty_debug:
name: "rusty";
type: executable;
flags: { "-Wall", "-g" };
output: ".";
file: "mpc.c";
file: "rusty.c";
depends: "util.h";
depends: "dirent.h";
depends: "arg.h";
install:
{
"cp ./rusty /usr/bin/rusty",
"chmod 0777 /usr/bin/rusty"
};
uninstall:
{
"rm -rf /usr/bin/rusty"
}
build rusty:
depends: { "mpc.c", "rusty.c", "lib.c", "mpc.h", "arg.h", "util.h" }
build: rusty_;
build: obj_test;
link: rusty_ + obj_test;
exec: "echo build completed";