summaryrefslogtreecommitdiffstats
path: root/examples/Makefile
blob: 0f42308e4044cce2c5b36606ee83548f66c80c2e (plain) (blame)
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
OUT = 01_hello \
      02_sample \
      03_sample-filter \
      04_point \
      05_enum \
      08_enum-custom \
      10_vec \
      11_str \
      12_point-impl \
      13_trait \
      14_point-show \
      17_borrow-error-fixed \
      20_list \
      21_spawn

all : $(OUT)

1 : 01_hello
	./01_hello
2 : 02_sample
	./02_sample
3 : 03_sample-filter
	./03_sample-filter
4 : 04_point
	./04_point
5 : 05_enum
	./05_enum
6 : 06_enum-nonexhaustive
7 : 07_enum-unknown-value
8 : 08_enum-custom
	./08_enum-custom
10 : 10_vec
	./10_vec
11 : 11_str
	./11_str
12 : 12_point-impl
	./12_point-impl
13 : 13_trait
	./13_trait
14 : 14_point-show
	./14_point-show
16 : 16_borrow-error
17 : 17_borrow-error-fixed
	./17_borrow-error-fixed
18 : 18_ownership_error
19 : 19_list-error
20 : 20_list
	./20_list
21 : 21_spawn
	./21_spawn

% : %.rs
	rustc $<

clean:
	rm -f $(OUT)

.PHONY: clean