Created
April 5, 2013 22:00
-
-
Save joyrexus/5322991 to your computer and use it in GitHub Desktop.
Sample Makefile for simple coffee-driven webapps.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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