mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
* One-shot development * Move jsonp to module * Tooltip -> module * Remove d3.jsonp * Fix tooltip lint * Load all libs but d3 itself with require * Add top-level brfs * Unformat intro graph
76 lines
2.0 KiB
Makefile
76 lines
2.0 KiB
Makefile
# See the README for installation instructions.
|
|
|
|
all: \
|
|
$(BUILDJS_TARGETS) \
|
|
dist/iD.css \
|
|
dist/iD.js \
|
|
dist/iD.min.js \
|
|
dist/img/iD-sprite.svg \
|
|
dist/img/maki-sprite.svg
|
|
|
|
MAKI_SOURCES = node_modules/maki/src/*.svg
|
|
|
|
dist/img/maki-sprite.svg: $(MAKI_SOURCES) Makefile
|
|
node_modules/.bin/svg-sprite --symbol --symbol-dest . --symbol-sprite $@ $(MAKI_SOURCES)
|
|
|
|
dist/img/iD-sprite.svg: svg/iD-sprite.src.svg svg/iD-sprite.json
|
|
node svg/spriteify.js --svg svg/iD-sprite.src.svg --json svg/iD-sprite.json > $@
|
|
|
|
BUILDJS_TARGETS = \
|
|
data/presets/categories.json \
|
|
data/presets/fields.json \
|
|
data/presets/presets.json \
|
|
data/presets.yaml \
|
|
data/taginfo.json \
|
|
data/data.js \
|
|
dist/locales/en.js \
|
|
dist/presets.js \
|
|
dist/imagery.js \
|
|
|
|
BUILDJS_SOURCES = \
|
|
data/core.yaml
|
|
|
|
$(BUILDJS_TARGETS): $(BUILDJS_SOURCES) build.js
|
|
node build.js
|
|
|
|
dist/iD.js: $(BUILDJS_TARGETS)
|
|
./node_modules/.bin/rollup --config=./rollup.config.js --input ./modules/id.js --output dist/iD.js
|
|
|
|
dist/iD.min.js: dist/iD.js Makefile
|
|
@rm -f $@
|
|
node_modules/.bin/uglifyjs $< -c -m -o $@
|
|
|
|
dist/iD.css: css/*.css
|
|
cat css/reset.css css/map.css css/app.css > $@
|
|
|
|
translations:
|
|
node data/update_locales
|
|
|
|
imagery:
|
|
node data/update_imagery
|
|
|
|
D3_FILES = \
|
|
node_modules/d3/src/start.js \
|
|
node_modules/d3/src/arrays/index.js \
|
|
node_modules/d3/src/behavior/behavior.js \
|
|
node_modules/d3/src/behavior/zoom.js \
|
|
node_modules/d3/src/core/index.js \
|
|
node_modules/d3/src/event/index.js \
|
|
node_modules/d3/src/geo/length.js \
|
|
node_modules/d3/src/geo/mercator.js \
|
|
node_modules/d3/src/geo/path.js \
|
|
node_modules/d3/src/geo/stream.js \
|
|
node_modules/d3/src/geom/polygon.js \
|
|
node_modules/d3/src/geom/hull.js \
|
|
node_modules/d3/src/selection/index.js \
|
|
node_modules/d3/src/transition/index.js \
|
|
node_modules/d3/src/xhr/index.js \
|
|
node_modules/d3/src/end.js
|
|
|
|
d3:
|
|
node_modules/.bin/smash $(D3_FILES) > js/lib/d3.v3.js
|
|
@echo 'd3 rebuilt. Please reapply 7e2485d, 4da529f, 223974d and 71a3d3e'
|
|
|
|
clean:
|
|
rm -f $(BUILDJS_TARGETS) data/feature-icons.json dist/iD*.js dist/iD.css dist/img/*.svg
|