imathis/octopress — Issue #333: Add a Makefile to workaround poor long-term memory
Author: srid
Created: 2011-12-20 18:13:56+00:00
State: open

I came back to octopress for writing a new blog post after 2 months. And I forgot all the `rake` commands; so had to look up the documentation. I think it would be easier if Octopress shipped with a `Makefile` containing typical workflow commands:

```make
.PHONY: setup preview deploy

BUNDLE := /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/bin/bundle
RAKE := $(BUNDLE) exec rake

setup:
$(BUNDLE) install

preview:
(sleep 2 && open "http://localhost:4000") &
$(RAKE) preview

deploy:
$(RAKE) generate
$(RAKE) deploy
```

This doesn't include `make help`, but you get the idea.

(`Rakefile` can still serve the purpose of defining lower level tasks)