-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
56 lines (47 loc) · 1012 Bytes
/
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
MARKDOWN = marked
MDDOCS= \
config-keystone.md \
config-neutron.md \
config-nova.md \
config-upgrade.md \
config-horizon.md \
database-keystone.md \
database-nova.md \
database-upgrade.md \
final-package-upgrade.md \
overview.md \
post-upgrade.md \
pre-upgrade.md \
service.md \
upgrade-1.md \
upgrade-2-ha.md \
upgrade-2.md \
upgrade-ceilometer-ha.md \
upgrade-cinder-ha.md \
upgrade-compute.md \
upgrade-glance-ha.md \
upgrade-heat-ha.md \
upgrade-horizon-ha.md \
upgrade-keystone-ha.md \
upgrade-mariadb-ha.md \
upgrade-mongodb-ha.md \
upgrade-neutron-ha.md \
upgrade-neutron.md \
upgrade-nova-ha.md \
upgrade-nova.md
HTMLDOCS= $(MDDOCS:.md=.html)
%.1.html: %.md
$(MARKDOWN) $< > $@ || rm -f $@
%.2.html: %.1.html
(echo '<html>'; cat $<; echo '</html>') > $@
%.html: %.2.html
title="$(shell xmllint --xpath '//h1/text()' $<)"; \
( \
sed "s|TITLE|$$title|g" head; \
cat $<; \
cat foot; \
) > $@
all: $(HTMLDOCS)
clean:
rm -f $(HTMLDOCS)
$(HTMLDOCS): head foot