From ae3a1a16481b3901376c2a7520c065595ba16be7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 14 Dec 2023 13:18:12 +0100 Subject: [PATCH] Makefile: build epub Closes #324 --- Makefile | 11 +++++++++-- epub.txt | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 epub.txt diff --git a/Makefile b/Makefile index 3b4121b2f9..9d0092f74c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/epub.txt b/epub.txt new file mode 100644 index 0000000000..4631832b13 --- /dev/null +++ b/epub.txt @@ -0,0 +1,6 @@ +--- +title: Everything curl +author: Daniel Stenberg +rights: Creative Commons Attribution 4.0 International +language: en-US +...