Skip to content

Commit

Permalink
Misc makefile cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 2, 2010
1 parent 09d5c0f commit dcac3dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ HTML = $(MD:.md=.html)
all: book.html book.pdf book.mobi book.epub all: book.html book.pdf book.mobi book.epub


book.pdf: $(HTML) book.pdf: $(HTML)
@echo "\n... generating $@"
htmldoc $(HTML) $(PDF_FLAGS) --outfile $@ htmldoc $(HTML) $(PDF_FLAGS) --outfile $@


book.html: pages/head.html pages/tail.html $(HTML) book.html: pages/head.html pages/tail.html $(HTML)
@echo "\n... generating $@"
cat pages/head.html $(HTML) pages/tail.html > book.html cat pages/head.html $(HTML) pages/tail.html > book.html


%.html: %.md %.html: %.md
Expand All @@ -37,9 +39,11 @@ book.html: pages/head.html pages/tail.html $(HTML)
> $@ > $@


book.mobi: book.mobi:
@echo "\n... generating $@"
ebook-convert book.html book.mobi --output-profile kindle ebook-convert book.html book.mobi --output-profile kindle


book.epub: book.epub:
@echo "\n... generating $@"
ebook-convert book.html book.epub ebook-convert book.html book.epub


view: book.pdf view: book.pdf
Expand Down
Binary file modified book.epub
Binary file not shown.
Binary file modified book.mobi
Binary file not shown.
Binary file modified book.pdf
Binary file not shown.

0 comments on commit dcac3dc

Please sign in to comment.