Commit 55e79740 authored by Romain Courteaud's avatar Romain Courteaud

Do not lint on each run.

parent 377b9ebe
# files # files
RENDERJS = renderjs.js RENDERJS = renderjs.js
RENDERJS_MIN = renderjs.min.js RENDERJS_MIN = renderjs.min.js
BUILDDIR = tmp
include config.mk include config.mk
auto: build all: lint test build doc
build: uglify
uglify: $(RENDERJS_MIN)
$(RENDERJS_MIN): $(RENDERJS) $(RENDERJS_MIN): $(RENDERJS)
$(UGLIFY_CMD) "$<" > "$@" $(UGLIFY_CMD) "$<" > "$@"
lint: $(RENDERJS) ${BUILDDIR}/$(RENDERJS).lint: $(RENDERJS)
@mkdir -p $(@D)
$(LINT_CMD) "$<" $(LINT_CMD) "$<"
touch $@
${TESTDIR}/shared/test/%.html.ok: ${TESTDIR}/shared/test/%.html ${TESTDIR}/shared/test/qunit/%.js ${TESTDIR}/shared/js/%.js ${BUILDDIR}/index.html.ok: test/index.html
test/index.html.ok: test/index.html
$(PHANTOMJS_CMD) ./test/run-qunit.js $< $(PHANTOMJS_CMD) ./test/run-qunit.js $<
@mkdir -p $(@D)
@sleep 1 @sleep 1
touch $@ touch $@
test: test/index.html.ok build: $(RENDERJS_MIN)
test: ${BUILDDIR}/index.html.ok
lint: ${BUILDDIR}/$(RENDERJS).lint
doc: doc:
$(YUIDOC_CMD) . $(YUIDOC_CMD) .
clean: clean:
rm -f $(RENDERJS_MIN) rm -rf $(RENDERJS_MIN) ${BUILDDIR}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment