-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
110 lines (99 loc) · 3.89 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.PHONY: all clean
SVG := $(shell find img/ -name '*.svg')
DIA := $(shell find img/ -name '*.dia')
SVG_PNG := $(patsubst %.svg, %.png, $(SVG))
DIA_PNG := $(patsubst %.dia, %.PNG, $(DIA))
PNG := $(DIA_PNG) $(SVG_PNG)
PARTIALS:= partial/partial01-broken.yaml partial/partial01.yaml partial/partial02-broken.yaml partial/partial02.yaml partial/partial03.yaml partial/partial04.yaml partial/partial05.yaml partial/partial06-broken.yaml partial/partial06.yaml partial/partial07.yaml partial/partial08.yaml partial/partial09.yaml partial/partial10.yaml partial/partial11.yaml partial/partial12.yaml
SLIDES := \
slides/introduction.md \
slides/what_is_heat.md \
slides/this_workshop.md \
slides/services_and_architecture.md \
slides/anatomy_of_a_heat_template.md \
slides/overview.md \
slides/command_line_heat_client_1.md \
slides/command_line_heat_client_2.md \
slides/heat_resources_an_example.md \
slides/heat_functions.md \
slides/hands_on_creating_a_heat_stack.md \
slides/preparations.md \
slides/a_minimal_template.md \
slides/error_1_heat_template_version.md \
slides/adding_parameters_to_your_template.md \
slides/error_2_tabs_versus_spaces.md \
slides/creating_a_network.md \
slides/creating_a_subnet.md \
slides/a_port_on_your_network.md \
slides/creating_an_instance.md \
slides/error_4_ssh_key_not_found.md \
slides/error_5_no_valid_host_was_found.md \
slides/attempt_to_associate_a_floating_ip.md \
slides/error_6_external_network_not_reachable.md \
slides/creating_a_router.md \
slides/adding_a_routerinterface.md \
slides/associating_a_floating_ip.md \
slides/error_7_floating_ip_unreachable.md \
slides/security_groups_to_the_rescue.md \
slides/error_8_security_group_not_associated.md \
slides/port_revisited.md \
slides/outputs_whats_my_floating_ip.md \
slides/error_9_cant_delete_stack.md \
slides/cloud_config.md \
slides/wait_condition.md
slides.md: $(SLIDES)
cat $(SLIDES) > $@
presentation.odp: slides.md template.odp $(PNG)
odpdown \
-p 1 \
--content-master No-Logo_20_Content \
--break-master Break \
slides.md template.odp presentation.odp
presentation.pdf: presentation.odp
libreoffice --convert-to pdf $<
all: presentation.odp presentation.pdf transcript.txt partial $(PARTIALS)
img/%.png: img/%.svg
convert $< $@
# ugly, but will do
img/%.PNG: img/%.dia
dia -e $@ -t svg $<
clean:
rm -f presentation.odp
rm -f slides.md
rm -f img/*png
rm -f img/*PNG
rm -rf partial/0* partial/partial11.yaml partial/partial12.yaml
transcript.txt: slides.md
bin/htmlcomments slides.md > transcript.txt
partial:
mkdir partial
partial/partial01-broken.yaml: snippets/with-errors/01*
cat $^ > $@
partial/partial01.yaml: snippets/without-errors/01-*
cat $^ > $@
partial/partial02-broken.yaml: partial/partial01.yaml snippets/with-errors/02-*
cat $^ > $@
partial/partial02.yaml: partial/partial01.yaml snippets/without-errors/02-*
cat $^ > $@
partial/partial03.yaml: partial/partial02.yaml snippets/without-errors/03-*
cat $^ > $@
partial/partial04.yaml: partial/partial03.yaml snippets/without-errors/04-*
cat $^ > $@
partial/partial05.yaml: partial/partial04.yaml snippets/without-errors/05-*
cat $^ > $@
partial/partial06-broken.yaml: partial/partial05.yaml snippets/without-errors/09-*
cat $^ > $@
partial/partial06.yaml: partial/partial05.yaml snippets/without-errors/06-*
cat $^ > $@
partial/partial07.yaml: partial/partial06.yaml snippets/without-errors/07-*
cat $^ > $@
partial/partial08.yaml: partial/partial07.yaml snippets/without-errors/08-*
cat $^ > $@
partial/partial09.yaml: partial/partial08.yaml snippets/without-errors/09-*
cat $^ > $@
partial/partial10.yaml: partial/partial09.yaml snippets/without-errors/10-*
cat $^ > $@
partial/partial11.yaml: $(sort $(wildcard snippets/without-errors/0[1-4]-* snippets/without-errors/11-* snippets/without-errors/0[6-9]-* snippets/without-errors/10-*))
cat $^ > $@
partial/partial12.yaml: partial/partial11.yaml snippets/without-errors/12-*
cat $^ > $@