forked from programmfabrik/easydb-custom-data-type-georef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·51 lines (39 loc) · 1.55 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
PLUGIN_NAME = custom-data-type-georef
PLUGIN_PATH = easydb-custom-data-type-georef
L10N_FILES = easydb-library/src/commons.l10n.csv \
l10n/$(PLUGIN_NAME).csv
L10N_GOOGLE_KEY = 1ux8r_kpskdAwTaTjqrk92up5eyyILkpsv4k96QltmI0
L10N_GOOGLE_GID = 1569075372
INSTALL_FILES = \
$(WEB)/l10n/cultures.json \
$(WEB)/l10n/de-DE.json \
$(WEB)/l10n/en-US.json \
$(JS) \
$(CSS) \
manifest.yml
COFFEE_FILES = easydb-library/src/commons.coffee \
src/webfrontend/CustomDataTypeGeoref.coffee
MAPBOX1 = src/external/mapbox-gl.js
MAPBOX2 = src/external/mapbox-gl-draw.js
MAPBOX3 = src/external/geojson-extent.js
MAPBOX4 = src/external/geo-viewport.js
MAPBOX5 = src/external/mapbox-gl-geocoder.min.js
TURF_REWIND = src/external/turfRewind.js
CSSGLDRAW = src/external/mapbox_gl_draw.css
CSSADDITIONAL = src/external/mapbox.css
CSSGEOCODER = src/external/mapbox-gl-geocoder.css
CSS_FILE = src/webfrontend/css/main.css
all: build
include easydb-library/tools/base-plugins.make
build: code morecss buildinfojson
code: $(subst .coffee,.coffee.js,${COFFEE_FILES}) $(L10N)
mkdir -p build
mkdir -p build/webfrontend
cat $^ > build/webfrontend/custom-data-type-georef.js
cat $(MAPBOX1) $(MAPBOX2) $(MAPBOX3) $(MAPBOX4) $(MAPBOX5) $(TURF_REWIND) >> build/webfrontend/custom-data-type-georef.js
morecss:
cat $(CSS_FILE) >> build/webfrontend/custom-data-type-georef.css
cat $(CSSGEOCODER) >> build/webfrontend/custom-data-type-georef.css
cat $(CSSGLDRAW) >> build/webfrontend/custom-data-type-georef.css
cat $(CSSADDITIONAL) >> build/webfrontend/custom-data-type-georef.css
clean: clean-base