Skip to content

Instantly share code, notes, and snippets.

@creativ

creativ/Makefile

Created Aug 6, 2014
Embed
What would you like to do?
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
You can’t perform that action at this time.