Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: build epub #324

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
...
Loading