From 8eb4b9f618506b66289601edd7aea05a2a0c6402 Mon Sep 17 00:00:00 2001 From: Stoneguard001 Date: Mon, 30 Dec 2024 18:51:44 -0500 Subject: [PATCH] makefile cleanup and added folders to .gitignore --- .gitignore | 2 ++ book/makefile | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 6c35385..79db794 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,5 @@ book/book-epub/ book/bw-book-epub/* book/release/* book/low-res-book-epub/* +book/epub_build/* +book/website_build/* diff --git a/book/makefile b/book/makefile index eb1ffc7..fc33631 100644 --- a/book/makefile +++ b/book/makefile @@ -10,8 +10,7 @@ REDUCE_PIC := -resize '800x800>' \ -strip -interlace Plane -gaussian-blur 0.05 -quality 85\% \ -set colorspace Gray -separate -evaluate-sequence Mean REDUCE_PIC_COLOR := -quality 80\% -RSYNC := rsync -au --exclude 'book.epub' --exclude '*.jpg' --exclude '*.png' -RSYNC_INC_PNG := rsync -au --exclude 'book.epub' --exclude '*.jpg' +RSYNC := rsync -au --exclude 'book.epub' --exclude '*.jpg' GIT := git --no-pager SPELL_CHECK := hunspell -t -l -d en_US @@ -116,10 +115,10 @@ epub/%.epub: %.tex $(ebook_src) cover/cover-page.xbb $(EBOOK) $< copy_ebook_files: build_ebook - $(RSYNC) epub_build/book-epub/ bw-book-epub/ + $(RSYNC) --exclude '*.png' epub_build/book-epub/ bw-book-epub/ copy_ebook_files_low_res: build_ebook - $(RSYNC_INC_PNG) epub_build/book-epub/ low-res-book-epub/ + $(RSYNC) epub_build/book-epub/ low-res-book-epub/ # We do not convert SVG to B&W or lower res for now as they are super small # anyway