-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
95 lines (65 loc) · 2.15 KB
/
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
RUSTC = rustc
CARGO = cargo build
CHANGEDIR_VARIABLES = cd variables
CHANGEDIR_IFELSE = cd if
CHANGEDIR_BUCLES = cd bucles
CHANGEDIR_FUNCIONES= cd funciones
CHANGEDIR_GESTMEMORIA = cd gestion-memoria
CHANGEDIR_CADENAS = cd cadenas
CHANGEDIR_ARRAYS= cd arrays-tuplas
CHANGEDIR_STRUCTS= cd structs-enums
CHANGEDIR_OPTION= cd option-result
CHANGEDIR_MODULES = cd modulos
CHANGEDIR_CARGO = cd cargo/miproyecto
all: variables if-else bucles funciones gestion-memoria cadenas arrays-tuplas structs-enums option-result modulos cargo
variables: variables1.rs variables2.rs variables3.rs
variables1.rs:
${CHANGEDIR_VARIABLES} && ${RUSTC} variables1.rs
variables2.rs:
${CHANGEDIR_VARIABLES} && ${RUSTC} variables2.rs
variables3.rs:
${CHANGEDIR_VARIABLES} && ${RUSTC} variables3.rs
if-else:
${CHANGEDIR_IFELSE} && ${RUSTC} if-else.rs
bucles: bucles1.rs bucles2.rs
bucles1.rs:
${CHANGEDIR_BUCLES} && ${RUSTC} bucles1.rs
bucles2.rs:
${CHANGEDIR_BUCLES} && ${RUSTC} bucles2.rs
funciones: funciones1.rs
funciones1.rs:
${CHANGEDIR_FUNCIONES} && ${RUSTC} funciones1.rs
gestion-memoria: gestion-memoria1.rs gestion-memoria2.rs
gestion-memoria1.rs:
${CHANGEDIR_GESTMEMORIA} && ${RUSTC} gestion-memoria1.rs
gestion-memoria2.rs:
${CHANGEDIR_GESTMEMORIA} && ${RUSTC} gestion-memoria2.rs
cadenas: cadenas1.rs cadenas2.rs
cadenas1.rs:
${CHANGEDIR_CADENAS} && ${RUSTC} cadenas1.rs
cadenas2.rs:
${CHANGEDIR_CADENAS} && ${RUSTC} cadenas2.rs
arrays-tuplas: arrays-tuplas1.rs arrays-tuplas2.rs
arrays-tuplas1.rs:
${CHANGEDIR_ARRAYS} && ${RUSTC} arrays-tuplas1.rs
arrays-tuplas2.rs:
${CHANGEDIR_ARRAYS} && ${RUSTC} arrays-tuplas2.rs
structs-enums: structs-enums1.rs structs-enums2.rs
structs-enums1.rs:
${CHANGEDIR_STRUCTS} && ${RUSTC} structs-enums1.rs
structs-enums2.rs:
${CHANGEDIR_STRUCTS} && ${RUSTC} structs-enums2.rs
option-result: option-result1.rs option-result2.rs
option-result1.rs:
${CHANGEDIR_OPTION} && ${RUSTC} option-result1.rs
option-result2.rs:
${CHANGEDIR_OPTION} && ${RUSTC} option-result2.rs
modulos: modulos1.rs
modulos1.rs:
${CHANGEDIR_MODULES} && ${RUSTC} modulos1.rs
cargo: cargo1
cargo1:
${CHANGEDIR_CARGO} && ${CARGO}
clean:
rm **/*.pdb
rm **/*.exe