mirror of https://github.com/nodejs/node.git
23 lines
334 B
Makefile
23 lines
334 B
Makefile
|
|
||
|
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
|