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

Do not lint on each run.

parent 377b9ebe
# files
RENDERJS = renderjs.js
RENDERJS_MIN = renderjs.min.js
BUILDDIR = tmp
include config.mk
auto: build
build: uglify
uglify: $(RENDERJS_MIN)
all: lint test build doc
$(RENDERJS_MIN): $(RENDERJS)
$(UGLIFY_CMD) "$<" > "$@"
lint: $(RENDERJS)
${BUILDDIR}/$(RENDERJS).lint: $(RENDERJS)
@mkdir -p $(@D)
$(LINT_CMD) "$<"
touch $@
${TESTDIR}/shared/test/%.html.ok: ${TESTDIR}/shared/test/%.html ${TESTDIR}/shared/test/qunit/%.js ${TESTDIR}/shared/js/%.js
test/index.html.ok: test/index.html
${BUILDDIR}/index.html.ok: test/index.html
$(PHANTOMJS_CMD) ./test/run-qunit.js $<
@mkdir -p $(@D)
@sleep 1
touch $@
test: test/index.html.ok
build: $(RENDERJS_MIN)
test: ${BUILDDIR}/index.html.ok
lint: ${BUILDDIR}/$(RENDERJS).lint
doc:
$(YUIDOC_CMD) .
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