-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
29 lines (24 loc) · 722 Bytes
/
Copy pathmakefile
File metadata and controls
29 lines (24 loc) · 722 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
28
#----Markdown to HTML via pandoc----
#
# Warning: NEVER USE WHITESPACES IN YOUR FILENAMES,
# MAKE DOES NOT HANDLE THEM WELL
# Just don't do it
#
#vimwiki config:
#let g:vimwiki_list = [{'path': '~/vimwiki/','syntax': 'markdown', 'ext': '.wiki'}]
#let g:vimwiki_markdown_link_ext = 1
#
#When using a different file extension:
# * Change extension Variable in makefile
# * Change extension in linkFilter.lua
#
#Julian Dangelmaier 2020 nach Christus
.PHONY = build clean
EXT := .wiki
SRC := $(shell find -name '*$(EXT)')
TAR := $(addsuffix .html, $(basename $(SRC)))
build : $(TAR)
clean :
rm *.html
%.html : %$(EXT)
pandoc -f markdown -t html5 -s -c markup.css --mathjax -o $(@) $(<) --lua-filter linkFilter.lua