-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
27 lines (22 loc) · 759 Bytes
/
makefile
File metadata and controls
27 lines (22 loc) · 759 Bytes
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
outFolder=docs
templateFile=docs/template/kanban.html
markdownFile=docs/kanban.md
cssFile=docs/template/kanban.css
outFile=docs/kanban.html
markdownFileFromUrl=https://raw.githubusercontent.com/MozaicWorks/KanbanBoardInMarkdown/master/board.md
pandocArgs=-c $(cssFile) --template $(templateFile) -o $(outFile) --metadata title="Kanban board for the icebreaker"
pandocCommand=pandoc -s
copyStyleCommand=cp $(cssFile) $(outFolder)/style/
openCommand=xdg-open
build: .makeDirs
$(pandocCommand) $(markdownFile) $(pandocArgs)
$(copyStyleCommand)
fromUrl: .makeDirs
$(pandocCommand) $(markdownFileFromUrl) $(pandocArgs)
$(copyStyleCommand)
open:
$(openCommand) $(outFolder)/$(outFile)
clean:
rm -rf $(outFolder)
.makeDirs:
mkdir -p $(outFolder)/style