Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (32 sloc) 0.803 kB
TESTS = test/*.js
SRC = $(shell find lib -name "*.js" -type f)
UGLIFY_FLAGS = --no-mangle
all: jade.min.js runtime.min.js
test:
@./node_modules/.bin/expresso \
-I node_modules \
$(TESTS)
benchmark:
@node benchmarks/jade.js \
&& node benchmarks/jade-self.js \
&& node benchmarks/haml.js \
&& node benchmarks/haml2.js \
&& node benchmarks/ejs.js
jade.js: $(SRC)
@node support/compile.js $^
jade.min.js: jade.js
@uglifyjs $(UGLIFY_FLAGS) $< > $@ \
&& du jade.min.js \
&& du jade.js
runtime.js: lib/runtime.js
@cat support/head.js $< support/foot.js > $@
runtime.min.js: runtime.js
@uglifyjs $(UGLIFY_FLAGS) $< > $@ \
&& du runtime.min.js \
&& du runtime.js
clean:
rm -f jade.js
rm -f jade.min.js
rm -f runtime.js
rm -f runtime.min.js
.PHONY: test benchmark clean
Jump to Line
Something went wrong with that request. Please try again.