Skip to content

Commit

Permalink
Update makefile for booklet
Browse files Browse the repository at this point in the history
Add help target
follow naming conventions for target
  • Loading branch information
cedounet committed May 22, 2024
1 parent 5535ba0 commit 90eb07a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions book/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ tgt_figures := $(patsubst %.tex, %.png,$(src_figures))
%.xbb: %.jpg
ebb -x $<

booklet: booklet/booklet.pdf

booklet/booklet.pdf: $(src_all) booklet.tex
$(LATEX) -output-directory=booklet booklet.tex

Expand All @@ -106,7 +104,7 @@ epub/%.epub: %.tex $(ebook_src) cover/cover-page.xbb
copy_ebook_files: build_ebook
$(RSYNC) book-epub/ bw-book-epub/

# We not convert SVG to B&W or lower res for now as they are super small
# We do not convert SVG to B&W or lower res for now as they are super small
# anyway
bw-book-epub/OEBPS/%.jpg: %.jpg
mkdir -p $(dir $@)
Expand Down Expand Up @@ -149,6 +147,8 @@ help:
@echo ""
@echo "build_ebook: builds only the colour ebook"
@echo ""
@echo "build_booklet: builds only the short booklet"
@echo ""
@echo "build_bw_ebook: builds the low res black & white ebook"
@echo ""
@echo "build_sans_serif_pdf: build accessible pdf only"
Expand All @@ -169,6 +169,8 @@ help:
@echo ""
@echo "quick_ebook: compiles ebook but runs lulatex only once"
@echo ""
@echo "quick_booklet: compiles booklet but runs lulatex only once"
@echo ""
@echo "show_tools_version: Show version of tools used on the build machine"
@echo ""
@echo "print-X: print makefile variable X"
Expand All @@ -179,10 +181,12 @@ help:


# Finally actual project targets (i.e. build pdf and ebooks)
.PHONY: build_pdf build_serif_pdf build_sans_serif_pdf build_ebook
.PHONY: build_pdf build_booklet build_serif_pdf build_sans_serif_pdf build_ebook

build_pdf: build_serif_pdf build_sans_serif_pdf

build_booklet: booklet/booklet.pdf

build_serif_pdf: book_serif/book.pdf

build_sans_serif_pdf: book_sans_serif/book_sans_serif.pdf
Expand Down

0 comments on commit 90eb07a

Please sign in to comment.