Skip to content

Instantly share code, notes, and snippets.

@creativ
Created August 6, 2014 10:52
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 creativ/2b7720689fcde81ba3db to your computer and use it in GitHub Desktop.
Save creativ/2b7720689fcde81ba3db to your computer and use it in GitHub Desktop.
Simple Makefile for CoffeeScript projects
COFFEEC = ./node_modules/.bin/coffee
DIST = dist
CONF = src/conf
all: build_dev build_prod
build_dev:
@$(COFFEEC) --join $(DIST)/lib-dev.js --compile src/lib.coffee $(CONF)/conf-dev.coffee
@echo 'Lib(Dev) successfully builded'
build_prod:
@$(COFFEEC) --join $(DIST)/lib.js --compile src/lib.coffee $(CONF)/conf-prod.coffee
@echo 'Lib successfully builded'
watch:
@$(COFFEEC) --watch --join $(DIST)/lib-dev.js --compile src/lib.coffee $(CONF)/conf-dev.coffee
clean:
@rm -rf $(DIST)
.PHONY: all build_dev build_prod watch clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment