-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·52 lines (40 loc) · 1.42 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
PLUGIN_NAME = custom-data-type-geonames
PLUGIN_PATH = easydb-custom-data-type-geonames
L10N_FILES = l10n/$(PLUGIN_NAME).csv
L10N_GOOGLE_KEY = 1Z3UPJ6XqLBp-P8SUf-ewq4osNJ3iZWKJB83tc6Wrfn0
L10N_GOOGLE_GID = 1663005148
INSTALL_FILES = \
$(WEB)/l10n/cultures.json \
$(WEB)/l10n/de-DE.json \
$(WEB)/l10n/en-US.json \
$(WEB)/l10n/da-DK.json \
$(WEB)/l10n/fi-FI.json \
$(WEB)/l10n/sv-SE.json \
$(WEB)/l10n/fr-FR.json \
$(WEB)/l10n/it-IT.json \
$(WEB)/l10n/es-ES.json \
$(JS) \
$(CSS) \
manifest.yml \
build/updater/geonames-update.js
MAPBOX1 = src/external/geojson-extent.js
MAPBOX2 = src/external/geo-viewport.js
COFFEE_FILES = easydb-library/src/commons.coffee \
src/webfrontend/geonamesUtil.coffee \
src/webfrontend/CustomDataTypeGeonames.coffee \
src/webfrontend/Countrycodes.coffee
CSS_FILE = src/webfrontend/css/main.css
UPDATE_SCRIPT_COFFEE_FILES = \
src/webfrontend/Countrycodes.coffee \
src/webfrontend/geonamesUtil.coffee \
src/updater/geonamesUpdate.coffee
all: build
include easydb-library/tools/base-plugins.make
build: code buildinfojson buildupdater
code: $(JS) $(L10N)
cat $(CSS_FILE) >> build/webfrontend/custom-data-type-geonames.css
cat $(MAPBOX1) $(MAPBOX2) >> build/webfrontend/custom-data-type-geonames.js
buildupdater: $(subst .coffee,.coffee.js,${UPDATE_SCRIPT_COFFEE_FILES})
mkdir -p build/updater
cat $^ > build/updater/geonames-update.js
clean: clean-base