forked from TobiasLohner/proSoar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
114 lines (81 loc) · 4 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
all: openlayers mootools airport-database deploy
DOWNLOAD_FOLDER = .tmp
STORAGE_FOLDER = storage
JS_FOLDER = web_dev/js
IMG_FOLDER = web_dev/images
DEPLOY_FOLDER = web
clean: clean-downloads clean-deploy
clean-downloads:
rm -rf $(DOWNLOAD_FOLDER)
clean-deploy:
rm -rf $(DEPLOY_FOLDER)
# OpenLayers
OPENLAYERS_VERSION = 2.13.1
OPENLAYERS_NAME = openlayers-$(OPENLAYERS_VERSION)
OPENLAYERS_ARCHIVE = $(OPENLAYERS_NAME).tar.gz
OPENLAYERS_URL = https://github.com/openlayers/openlayers/archive/v$(OPENLAYERS_VERSION).tar.gz
OPENLAYERS_JS_FOLDER = $(JS_FOLDER)/OpenLayers
OPENLAYERS_IMG_FOLDER = $(IMG_FOLDER)/OpenLayers
openlayers: $(JS_FOLDER)/OpenLayers/lib/OpenLayers.js
$(JS_FOLDER)/OpenLayers/lib/OpenLayers.js: $(DOWNLOAD_FOLDER)/$(OPENLAYERS_ARCHIVE)
tar -C $(DOWNLOAD_FOLDER) -xmf $(DOWNLOAD_FOLDER)/$(OPENLAYERS_ARCHIVE)
mkdir -p $(JS_FOLDER)/OpenLayers/
cp -r $(DOWNLOAD_FOLDER)/$(OPENLAYERS_NAME)/lib/ $(JS_FOLDER)/OpenLayers/lib/
cp -r $(DOWNLOAD_FOLDER)/$(OPENLAYERS_NAME)/img/ $(IMG_FOLDER)/OpenLayers
$(DOWNLOAD_FOLDER)/$(OPENLAYERS_ARCHIVE):
wget -N -P $(DOWNLOAD_FOLDER) $(OPENLAYERS_URL)
# MooTools
# http://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools.js
MOOTOOLS_CORE_VERSION = 1.4.5
MOOTOOLS_CORE_FILE = mootools.js
MOOTOOLS_CORE_URL = http://ajax.googleapis.com/ajax/libs/mootools/$(MOOTOOLS_CORE_VERSION)/$(MOOTOOLS_CORE_FILE)
MOOTOOLS_MORE_VERSION = 1.4.0.1
MOOTOOLS_MORE_ARCHIVE = mootools-more-$(MOOTOOLS_MORE_VERSION).tar.gz
MOOTOOLS_MORE_URL = https://github.com/mootools/mootools-more/archive/$(MOOTOOLS_MORE_ARCHIVE)
MOOTOOLS_MORE_FOLDER = $(DOWNLOAD_FOLDER)/mootools-more-$(MOOTOOLS_MORE_VERSION)
MOOTOOLS_MORE_COMPONENTS = \
$(MOOTOOLS_MORE_FOLDER)/Source/More/More.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Class/Class.Occlude.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Types/Object.Extras.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Locale/Locale.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Locale/Locale.en-US.Date.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Types/Date.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Fx/Fx.Elements.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Fx/Fx.Slide.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Interface/HtmlTable.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Element/Element.Shortcuts.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Class/Class.Refactor.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Interface/HtmlTable.Zebra.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Class/Events.Pseudos.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Element/Element.Event.Pseudos.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Types/String.Extras.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Interface/HtmlTable.Sort.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Element/Element.Event.Pseudos.Keys.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Interface/Keyboard.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Interface/Keyboard.Extras.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Interface/HtmlTable.Select.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Locale/Locale.de-DE.Date.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Element/Element.Measure.js \
$(MOOTOOLS_MORE_FOLDER)/Source/Element/Element.Position.js \
mootools: mootools-core mootools-more
mootools-core: $(JS_FOLDER)/MooTools/mootools-core.js
$(JS_FOLDER)/MooTools/mootools-core.js: $(DOWNLOAD_FOLDER)/$(MOOTOOLS_CORE_FILE)
cp $< $@
$(DOWNLOAD_FOLDER)/$(MOOTOOLS_CORE_FILE):
wget -N --no-use-server-timestamps -P $(DOWNLOAD_FOLDER) $(MOOTOOLS_CORE_URL)
mootools-more: $(JS_FOLDER)/MooTools/mootools-more.js
$(JS_FOLDER)/MooTools/mootools-more.js: $(MOOTOOLS_MORE_FOLDER)/Source/More/More.js
cat $(MOOTOOLS_MORE_COMPONENTS) > $@
$(MOOTOOLS_MORE_FOLDER)/Source/More/More.js: $(DOWNLOAD_FOLDER)/$(MOOTOOLS_MORE_ARCHIVE)
tar -C $(DOWNLOAD_FOLDER) -xmf $(DOWNLOAD_FOLDER)/$(MOOTOOLS_MORE_ARCHIVE)
$(DOWNLOAD_FOLDER)/$(MOOTOOLS_MORE_ARCHIVE):
wget -N --no-use-server-timestamps -P $(DOWNLOAD_FOLDER) $(MOOTOOLS_MORE_URL)
# Airport Database
AIRPORT_DB_FOLDER = $(STORAGE_FOLDER)/airports
airport-database: $(AIRPORT_DB_FOLDER)/lon0/lat45
$(AIRPORT_DB_FOLDER)/lon0/lat45:
scripts/gen_airports
# Deployment
deploy: $(DEPLOY_FOLDER)/js/proSoar.js
$(DEPLOY_FOLDER)/js/proSoar.js:
cd deploy && ./deploy.py