mirror of
https://github.com/sdiehl/wiwinwlh.git
synced 2024-09-11 12:05:25 +03:00
Write more
This commit is contained in:
parent
74275068ab
commit
d1aa052a69
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,7 +10,7 @@ includes
|
||||
*.html
|
||||
*.epub
|
||||
*.pdf
|
||||
*.agdai
|
||||
*.docx
|
||||
.stack-work
|
||||
dist-newstyle
|
||||
resources/*.eps
|
||||
|
5
Makefile
5
Makefile
@ -12,6 +12,7 @@ FLAGS = --standalone --toc --toc-depth=2 --highlight-style tango
|
||||
LFLAGS = --top-level-division=chapter
|
||||
#LFLAGS = --top-level-division=chapter -V colorlinks
|
||||
HFLAGS = -c css/style.css -c css/layout.css
|
||||
DFLAGS =
|
||||
EFLAGS =
|
||||
|
||||
HTML = tutorial.html
|
||||
@ -35,6 +36,10 @@ includes: includes.hs
|
||||
| sed '/<extensions>/r extensions.html' \
|
||||
| sed '/<copyright>/r resources/copyright.html' > $@
|
||||
|
||||
%.docx: %.md includes
|
||||
./includes < $< \
|
||||
| $(PANDOC) --template $(HTEMPLATE) -s -f $(IFORMAT) -t docx $(FLAGS) $(DFLAGS) > $@
|
||||
|
||||
%.epub: %.md includes
|
||||
(cat $(ETEMPLATE); ./includes < $<) \
|
||||
| $(PANDOC) -f $(IFORMAT) -t epub $(FLAGS) $(EFLAGS) -o $@
|
||||
|
Loading…
Reference in New Issue
Block a user