Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 24 lines (17 sloc) 0.358 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

SRC = $(shell find lib -name "*.js" -type f)
UGLIFY_FLAGS = --no-mangle

all: ejs.min.js

test:
@./node_modules/.bin/mocha \
--require should \
--reporter spec

ejs.js: $(SRC)
@node support/compile.js $^

ejs.min.js: ejs.js
@uglifyjs $(UGLIFY_FLAGS) $< > $@ \
&& du ejs.min.js \
&& du ejs.js

clean:
rm -f ejs.js
rm -f ejs.min.js

.PHONY: test
Something went wrong with that request. Please try again.