Commit 28a6dc1e authored by Romain Courteaud's avatar Romain Courteaud

Automate external libs download

parent 7bacc24c
...@@ -5,7 +5,28 @@ BUILDDIR = tmp ...@@ -5,7 +5,28 @@ BUILDDIR = tmp
include config.mk include config.mk
all: lint test build doc all: external lint test build doc
#########################################
# Download external lib
#########################################
# Download all external libs
external: lib/sinon/sinon.js \
lib/jquery/jquery.js \
lib/qunit/qunit.js \
lib/qunit/qunit.css
lib/sinon/sinon.js:
@mkdir -p $(@D)
curl -s -o $@ http://sinonjs.org/releases/sinon-1.7.3.js
lib/jquery/jquery.js:
@mkdir -p $(@D)
curl -s -o $@ http://code.jquery.com/jquery-2.0.3.js
lib/qunit/qunit.%:
@mkdir -p $(@D)
curl -s -o $@ http://code.jquery.com/qunit/qunit-1.12.0$(suffix $@)
$(RENDERJS_MIN): $(RENDERJS) $(RENDERJS_MIN): $(RENDERJS)
$(UGLIFY_CMD) "$<" > "$@" $(UGLIFY_CMD) "$<" > "$@"
...@@ -28,4 +49,4 @@ lint: ${BUILDDIR}/$(RENDERJS).lint ...@@ -28,4 +49,4 @@ lint: ${BUILDDIR}/$(RENDERJS).lint
doc: doc:
$(YUIDOC_CMD) . $(YUIDOC_CMD) .
clean: clean:
rm -rf $(RENDERJS_MIN) ${BUILDDIR} rm -rf $(RENDERJS_MIN) ${BUILDDIR} lib/sinon lib/jquery lib/qunit
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