forked from Pozzo-FH/pozzo-fh.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (53 loc) · 1.11 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
MDFLAGS=markdown+smart+link_attributes+multiline_tables+grid_tables+pipe_tables+definition_lists+backtick_code_blocks+fenced_code_attributes+implicit_figures+tex_math_dollars+header_attributes
PAGETITLE="FH2 Guide"
CSS=style.css
HTMLINCLUDE=fonts.html
MAIN=index
PVIEWER = zathura
PBROWSER = surf
OFFICE = abiword
.PHONY: help
help:
@echo "specify a target"
.PHONY: all
all: main tutorial docs maps
.PHONY: admin
admin: docs
.PHONY: docs
docs:
cp ../admin/doc/guide.md admin.md
pandoc --from $(MDFLAGS) \
-t html5 \
--css=$(CSS) \
-H $(HTMLINCLUDE) \
--metadata title="FH2 Admin Manual" \
--toc \
admin.md -o admin.html
.PHONY: maps
maps:
$(MAKE) -C maps all
.PHONY: tutorial
tutorial:
$(MAKE) -C tutorial all
.PHONY: main
main:
pandoc \
--css=$(CSS) \
-H $(HTMLINCLUDE) \
--from $(MDFLAGS) \
-t html \
-o $(MAIN).html \
$(MAIN).md
.PHONY: view
view: main
$(PBROWSER) $(MAIN).html 2> /dev/null &
.PHONY: clean
clean:
rm $(MAIN).html
.PHONY: test
test:
pandoc --from $(MDFLAGS) \
-t html5 --css=$(CSS) -H $(HTMLINCLUDE) \
--metadata title="TEST" \
--toc \
test.md -o test.html