diff --git a/Makefile b/Makefile index 35f4c38e0..a40e6da6a 100644 --- a/Makefile +++ b/Makefile @@ -6,13 +6,15 @@ JSHINT = "$(CWD)/node_modules/.bin/jshint" JSCS = "$(CWD)/node_modules/.bin/jscs" XYZ = node_modules/.bin/xyz --repo git@github.com:caolan/async.git -BUILDDIR = lib +BUILDDIR = dist +SRC = lib/async.js all: clean test build build: $(wildcard lib/*.js) mkdir -p $(BUILDDIR) - $(UGLIFY) lib/async.js -mc > $(BUILDDIR)/async.min.js + $(UGLIFY) $(SRC) -mc > $(BUILDDIR)/async.min.js + cp $(SRC) $(BUILDDIR)/async.js test: $(NODEUNIT) test @@ -21,8 +23,8 @@ clean: rm -rf $(BUILDDIR) lint: - $(JSHINT) lib/*.js test/*.js perf/*.js - $(JSCS) lib/*.js test/*.js perf/*.js + $(JSHINT) $(SRC) test/*.js perf/*.js + $(JSCS) $(SRC) test/*.js perf/*.js .PHONY: test lint build all clean