Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (27 sloc) 0.72 kb
655a2be @benpickles Use make and uglify.
authored
1 SRC = src/header.js \
2 src/model.js \
3 src/model_version.js \
4 src/model_utils.js \
5 src/event_emitter.js \
6 src/model_uid.js \
7 src/model_model.js \
8 src/model_class_methods.js \
9 src/model_errors.js \
10 src/collection.js \
11 src/model_rest.js \
12 src/null_persistence.js \
13 src/model_local_storage.js \
14 src/indexer.js
15
16 VERSION = $(shell cat VERSION)
17
18 js-model.js: $(SRC)
19 cat $^ | \
20 sed "s/@VERSION/${VERSION}/" > $@
21
22 js-model.min.js: js-model.js
23 uglifyjs < $< > $@
24
25 all:
26 make clean docs
27
28 clean:
29 rm -f js-model.js js-model.min.js
30
31 docs: js-model.min.js
32 ruby -rubygems -rbundler/setup -Idocs/lib -rdocs -e "puts Docs.build" > index.html
33
34 .PHONY: docs
Something went wrong with that request. Please try again.