You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
334 B

SRC = $(shell find lib -name "*.js" -type f)
UGLIFY_FLAGS = --no-mangle
all: ejs.min.js
test:
@./node_modules/.bin/mocha \
--ui exports
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