torque/Makefile

34 lines
851 B
Makefile
Raw Permalink Normal View History

2013-07-30 16:45:35 +08:00
UGLIFYJS=./node_modules/.bin/uglifyjs
JS_CLIENT_FILES= lib/torque/*.js \
lib/torque/renderer/*.js \
lib/torque/gmaps/*.js \
2013-08-29 21:21:39 +08:00
lib/torque/leaflet/leaflet_tileloader_mixin.js \
lib/torque/leaflet/canvas_layer.js \
lib/torque/leaflet/torque.js
2013-07-30 16:45:35 +08:00
2014-05-22 23:24:19 +08:00
all: dist/torque.js dist/torque.full.js
dist/torque.full.js: dist_folder dist/torque.uncompressed.js
cat vendor/carto.js dist/torque.uncompressed.js > dist/_torque.full.js
$(UGLIFYJS) dist/_torque.full.js > dist/torque.full.js
rm -rf dist/_torque.full.js
2013-08-07 00:19:01 +08:00
2013-07-30 16:45:35 +08:00
dist/torque.uncompressed.js: dist_folder $(JS_CLIENT_FILES)
cat $(JS_CLIENT_FILES) > dist/torque.uncompressed.js
dist/torque.js: dist_folder dist/torque.uncompressed.js
$(UGLIFYJS) dist/torque.uncompressed.js > dist/torque.js
dist_folder:
mkdir -p dist
dist: dist_folder dist/torque.js
clean:
rm -rf dist
.PHONY: clean dist_folder