Skip to content

Commit

Permalink
Makefile: build epub
Browse files Browse the repository at this point in the history
Closes #324
  • Loading branch information
bagder committed Dec 14, 2023
1 parent 71a2ca0 commit ae3a1a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ wordcheck:
fixup:
for i in $(MDS); do ./lang.sh $$i; done

uni.md: uni.pl $(MDS)
uni.md: uni.pl $(MDS) SUMMARY.md
./uni.pl SUMMARY.md >$@

pdf: uni.md
everything-curl.pdf: uni.md
pandoc -o everything-curl.pdf pdf.txt uni.md --toc

pdf: everything-curl.pdf

everything-curl.epub: uni.md
pandoc -o everything-curl.epub --epub-cover-image=cover.jpg epub.txt uni.md

epub: everything-curl.epub

clean:
rm -f uni.md everything-curl.pdf
6 changes: 6 additions & 0 deletions epub.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Everything curl
author: Daniel Stenberg
rights: Creative Commons Attribution 4.0 International
language: en-US
...

0 comments on commit ae3a1a1

Please sign in to comment.