-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
30 lines (24 loc) · 999 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
LABS=cloud-networking-guide.adoc \
content/networking_basics/networking_basics.adoc \
content/iptables/iptables.adoc \
content/openstack_networking/openstack_networking.adoc \
content/docker_networking/docker_networking.adoc
all: $(LABS) cloud-networking-guide
cloud-networking-guide: $(LABS)
asciidoc -v cloud-networking-guide.adoc
a2x -fpdf -dbook --fop --no-xmllint -v cloud-networking-guide.adoc
$(foreach lab,$(LABS), asciidoc -v $(lab);)
html: $(LABS)
asciidoc -v cloud-networking-guide.adoc
asciidoc --backend
$(foreach lab,$(LABS), asciidoc -v $(lab);)
pdf: $(LABS)
a2x -fpdf -dbook --fop --no-xmllint -v cloud-networking-guide.adoc
epub: $(LABS) $(SLIDES)
a2x -fepub -dbook --no-xmllint -v cloud-networking-guide.adoc
clean:
find . -type f -name \*.html -exec rm -f {} \;
find . -type f -name \*.pdf -exec rm -f {} \;
find . -type f -name \*.epub -exec rm -f {} \;
find . -type f -name \*.fo -exec rm -f {} \;
find . -type f -name \*.xml -exec rm -f {} \;