1
1
mirror of https://github.com/sdiehl/wiwinwlh.git synced 2024-09-11 12:05:25 +03:00

Write more

This commit is contained in:
sdiehl 2020-02-15 10:13:19 +00:00
parent 74275068ab
commit d1aa052a69
2 changed files with 6 additions and 1 deletions

2
.gitignore vendored
View File

@ -10,7 +10,7 @@ includes
*.html
*.epub
*.pdf
*.agdai
*.docx
.stack-work
dist-newstyle
resources/*.eps

View File

@ -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 $@