Skip to content

Instantly share code, notes, and snippets.

@joyrexus
Created April 5, 2013 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joyrexus/5322991 to your computer and use it in GitHub Desktop.
Save joyrexus/5322991 to your computer and use it in GitHub Desktop.
Sample Makefile for simple coffee-driven webapps.
DEPLOY_DIR = $(WEBDOCS)/project/demo
.PHONY: build deploy
SOURCES := $(wildcard src/*.coffee)
build: $(SOURCES)
coffee -co lib/ src/
@echo "coffee sources were compiled"
FILES = index.html css lib images
deploy: build $(FILES)
rsync -r --exclude=.svn $(FILES) $(DEPLOY_DIR)
@echo "files copied to $(DEPLOY_DIR)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment