forked from snabbco/snabb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 983 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
Q= @
E= @echo
# For verbose command line output, uncomment these lines:
#Q=
#E= @:
snabb-lwaftr-doc: doc/snabb-lwaftr.pdf doc/snabb-lwaftr.html doc/snabb-lwaftr.epub
doc/snabb-lwaftr.md:
(cd doc; ./genbook.sh) > $@
doc/snabb-lwaftr.pdf: doc/snabb-lwaftr.md
$(E) "PANDOC $@"
$(Q) (cd doc; pandoc -S --toc --chapters -o snabb-lwaftr.pdf snabb-lwaftr.md)
doc/snabb-lwaftr.html: doc/snabb-lwaftr.md
$(E) "PANDOC $@"
$(Q) (cd doc; pandoc --self-contained --css="../../../doc/style.css" -S -s --toc --chapters -o snabb-lwaftr.html snabb-lwaftr.md)
doc/snabb-lwaftr.epub: doc/snabb-lwaftr.md
$(E) "PANDOC $@"
$(Q) (cd doc; pandoc --self-contained --css="../../../doc/style.css" -S -s --toc --chapters -o snabb-lwaftr.epub snabb-lwaftr.md)
CLEAN = doc/snabb-lwaftr.*
clean_object_files:
@(find . -name "*.o" -exec echo "RM {}" \; -exec rm -f {} \;)
clean: clean_object_files
$(E) "RM $(CLEAN)"
$(Q)-rm -rf $(CLEAN)
.PHONY: clean_object_files clean