summaryrefslogtreecommitdiff
path: root/Makefile
blob: 00f07ea02c11766019625b00b95ec26c00885413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PACKAGE = asyncjs
NODEJS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node)

BUILDDIR = dist

all: build

build: $(wildcard  lib/*.js)
	mkdir -p $(BUILDDIR)
	uglifyjs lib/async.js > $(BUILDDIR)/async.min.js

test:
	nodeunit test

clean:
	rm -rf $(BUILDDIR)

lint:
	nodelint --config nodelint.cfg lib/async.js

.PHONY: test build all