Skip to content

Instantly share code, notes, and snippets.

@steveklabnik
Created September 25, 2013 05:20
Show Gist options
  • Save steveklabnik/6695437 to your computer and use it in GitHub Desktop.
Save steveklabnik/6695437 to your computer and use it in GitHub Desktop.
all: rust-for-rubyists.epub site
rust-for-rubyists.epub:
pandoc --toc -S -s --epub-metadata=book/metadata.xml -o rust-for-rubyists.epub book/title.txt book/preamble.md book/chapter-*.md
site:
pandoc -S -s book/preamble.md book/chapter-*.md -o book/book.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-01.md -o book/chapter-01.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-02.md -o book/chapter-02.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-03.md -o book/chapter-03.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-04.md -o book/chapter-04.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-05.md -o book/chapter-05.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-06.md -o book/chapter-06.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-07.md -o book/chapter-07.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-08.md -o book/chapter-08.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-09.md -o book/chapter-09.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-10.md -o book/chapter-10.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-11.md -o book/chapter-11.html --include-before-body=book/header.html --include-after-body=book/footer.html
pandoc -S -s book/chapter-12.md -o book/chapter-12.html --include-before-body=book/header.html --include-after-body=book/footer.html
ship: all
git push origin
s3deploy
@mwhooker
Copy link

not sure if you really want feedback, but you can use wildcards http://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html

@fuadsaud
Copy link

hey buddy, do you even rake???

haha kidding, but rake is really more helpful when dealing with file mapping :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment