Skip to content

Instantly share code, notes, and snippets.

@jocafa
Created August 25, 2011 00:23
Show Gist options
  • Select an option

  • Save jocafa/1169653 to your computer and use it in GitHub Desktop.

Select an option

Save jocafa/1169653 to your computer and use it in GitHub Desktop.
coffeefiles = $(filter-out %.test.coffee,$(shell find \
Nixie/js/Nixie.coffee \
Nixie/js/models/*.coffee \
Nixie/js/collections/*.coffee \
Nixie/js/Module.coffee \
Nixie/js/modules/*.coffee \
Nixie/js/Nixie.Controller.coffee \
))
all: \
Nixie/Nixie.build.js
Nixie/Nixie.build.js: \
Nixie/js/vendor/vendor.build.js
@echo Building $@
@cp Nixie/js/vendor/vendor.build.js Nixie/Nixie.build.js
@cat $(coffeefiles) | coffee -sp >> Nixie/Nixie.build.js
Nixie/js/vendor/vendor.build.js: \
Nixie/js/vendor/zepto.js \
Nixie/js/vendor/underscore.js \
Nixie/js/vendor/underscore.string.js \
Nixie/js/vendor/underscore.date.js \
Nixie/js/vendor/backbone.js \
Nixie/js/vendor/crypto-md5.js
@echo Building $@
@cat $^ > $@
ugly: all
uglifyjs --overwrite Nixie/Nixie.build.js
test: all
clean:
@rm -f Nixie/Nixie.build.js
@rm -f Nixie/js/vendor/vendor.build.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment