-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
89 lines (84 loc) · 2.6 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
bindir = build
# 1 - Creational
1_1_name = simple-factory
1_2_name = factory-method
1_3_name = abstract-factory
1_4_name = builder
1_5_name = prototype
1_6_name = singleton
1_6_1_name = another_singleton
# 2 - Structural
2_1_name = adapter
2_2_name = bridge
2_3_name = composite
2_4_name = decorator
2_5_name = facade
2_6_name = flyweight
2_7_name = proxy
# 3 - Behavioral
3_1_name = chain-of-responsability
3_2_name = command
3_3_name = iterator
3_4_name = mediator
3_5_name = memento
3_6_name = observer
3_7_name = visitor
3_8_name = strategy
3_9_name = state
3_10_name = template
all:
mkdir -p build
# (1)
valac -o $(bindir)/$(1_1_name) 1-1-$(1_1_name).vala
valac -o $(bindir)/$(1_2_name) 1-2-$(1_2_name).vala
valac -o $(bindir)/$(1_3_name) 1-3-$(1_3_name).vala
valac -o $(bindir)/$(1_4_name) 1-4-$(1_4_name).vala
valac -o $(bindir)/$(1_5_name) 1-5-$(1_5_name).vala
valac -o $(bindir)/$(1_6_name) 1-6-$(1_6_name).vala
valac -o $(bindir)/$(1_6_1_name) 1-6-1-$(1_6_name).vala
# (2)
valac -o $(bindir)/$(2_1_name) 2-1-$(2_1_name).vala
valac -o $(bindir)/$(2_2_name) 2-2-$(2_2_name).vala
valac -o $(bindir)/$(2_3_name) 2-3-$(2_3_name).vala
valac -o $(bindir)/$(2_4_name) 2-4-$(2_4_name).vala
valac -o $(bindir)/$(2_5_name) 2-5-$(2_5_name).vala
valac -o $(bindir)/$(2_6_name) 2-6-$(2_6_name).vala --pkg=gee-0.8
valac -o $(bindir)/$(2_7_name) 2-7-$(2_7_name).vala
# (3)
valac -o $(bindir)/$(3_1_name) 3-1-$(3_1_name).vala
valac -o $(bindir)/$(3_2_name) 3-2-$(3_2_name).vala
valac -o $(bindir)/$(3_3_name) 3-3-$(3_3_name).vala --pkg=gee-0.8
valac -o $(bindir)/$(3_4_name) 3-4-$(3_4_name).vala
valac -o $(bindir)/$(3_5_name) 3-5-$(3_5_name).vala
valac -o $(bindir)/$(3_6_name) 3-6-$(3_6_name).vala --pkg=gee-0.8
valac -o $(bindir)/$(3_7_name) 3-7-$(3_7_name).vala
valac -o $(bindir)/$(3_8_name) 3-8-$(3_8_name).vala
valac -o $(bindir)/$(3_9_name) 3-9-$(3_9_name).vala
valac -o $(bindir)/$(3_10_name) 3-10-$(3_10_name).vala
clean:
rm -f $(bindir)/$(1_1_name)
rm -f $(bindir)/$(1_2_name)
rm -f $(bindir)/$(1_3_name)
rm -f $(bindir)/$(1_4_name)
rm -f $(bindir)/$(1_5_name)
rm -f $(bindir)/$(1_6_name)
rm -f $(bindir)/$(1_6_1_name)
#
rm -f $(bindir)/$(2_1_name)
rm -f $(bindir)/$(2_2_name)
rm -f $(bindir)/$(2_3_name)
rm -f $(bindir)/$(2_4_name)
rm -f $(bindir)/$(2_5_name)
rm -f $(bindir)/$(2_6_name)
rm -f $(bindir)/$(2_7_name)
#
rm -f $(bindir)/$(3_1_name)
rm -f $(bindir)/$(3_2_name)
rm -f $(bindir)/$(3_3_name)
rm -f $(bindir)/$(3_4_name)
rm -f $(bindir)/$(3_5_name)
rm -f $(bindir)/$(3_6_name)
rm -f $(bindir)/$(3_7_name)
rm -f $(bindir)/$(3_8_name)
rm -f $(bindir)/$(3_9_name)
rm -f $(bindir)/$(3_10_name)