forked from platener/GreinerHormann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (17 loc) · 791 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SOURCES = dist/greiner-hormann.leaflet.js dist/greiner-hormann.js
COMPILED = dist/greiner-hormann.leaflet.min.js dist/greiner-hormann.min.js
QS = compilation_level=ADVANCED_OPTIMIZATIONS&output_format=text
URL = http://closure-compiler.appspot.com/compile
all: clean sources compile
clean:
@rm -rf dist/*
dist/greiner-hormann.js:
@browserify -s greinerHormann src/greiner-hormann.js > dist/greiner-hormann.js
dist/greiner-hormann.leaflet.js:
@browserify -s greinerHormann src/leaflet.js > dist/greiner-hormann.leaflet.js
sources: ${SOURCES}
compile: ${COMPILED}
%.min.js: %.js
@echo " - $(<) -> $(@)";
@curl --silent --show-error --data-urlencode "js_code@$(<)" --data-urlencode "js_externs@src/externs.js" \
--data "${QS}&output_info=compiled_code" ${URL} -o $(@)