Skip to content

Instantly share code, notes, and snippets.

@serra
Last active April 9, 2016 09:09
Show Gist options
  • Save serra/e5499e9723410fefe369ad64d643eade to your computer and use it in GitHub Desktop.
Save serra/e5499e9723410fefe369ad64d643eade to your computer and use it in GitHub Desktop.
# Makefile to create mobile versions of the Scrum Guide
#
# Examples:
#
# make epup
# make mobi
#
# Prerequisites:
#
# pandoc installed and available on PATH
# kindlegen installed and available on PATH
#
# More information: http://bit.do/mobile-scrum-guide
guide = ./guides/scrum-guide
all: download epub mobi
download:
-mkdir ./guides/
curl http://scrumguides.org/scrum-guide.html -z $(guide).html -o $(guide).html
html: download
epub: download
pandoc $(guide).html -o $(guide).epub
mobi: epub
kindlegen $(guide).epub
clean:
-rm -f ./guides/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment