Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 32 lines (26 sloc) 0.728 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
VERSION:=$(shell cat VERSION)

JS_FILES = \
src/start.jsf \
src/utils.js \
src/point.js \
src/coordinate.js \
src/location.js \
src/transformation.js \
src/projection.js \
src/provider.js \
src/interaction.js \
src/callbacks.js \
src/requests.js \
src/map.js \
src/end.jsf

all: modestmaps.js modestmaps.min.js

modestmaps.min.js: modestmaps.tmp.js
java -jar tools/yuicompressor-2.4.2.jar modestmaps.tmp.js > modestmaps.min.js

modestmaps.js: modestmaps.tmp.js
cat modestmaps.tmp.js > modestmaps.js

modestmaps.tmp.js: src/copyright.js $(JS_FILES)
cat src/copyright.js > modestmaps.tmp.js
perl -pi -e 's#N\.N\.N#$(VERSION)#' modestmaps.tmp.js
cat $(JS_FILES) >> modestmaps.tmp.js

clean:
rm modestmaps.tmp.js
Something went wrong with that request. Please try again.