This repository was archived by the owner on Jun 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
81 lines (64 loc) · 3.22 KB
/
Copy pathMakefile
File metadata and controls
81 lines (64 loc) · 3.22 KB
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
##########################################################################
## Change macros below according to your environment and your needs
##
##########################################################################
# Review (and if necessary) change these if you are going to
# install directly by using this makefile
INSTALL_BIN = $(DESTDIR)/usr/bin
INSTALL_CONFIG = $(DESTDIR)/etc/polaric-webapp
INSTALL_WEB = $(DESTDIR)/var/www/aprs
INSTALL_DATA = $(DESTDIR)/var/lib/polaric
INSTALL_LOG = $(DESTDIR)/var/log/polaric/kamap
##################################################
## things below should not be changed
##
##################################################
all: compile
install: Aprs/compiled.js
install -d $(INSTALL_CONFIG)
install -d $(INSTALL_CONFIG)/www
install -d $(INSTALL_CONFIG)/www/auto
install -d $(INSTALL_CONFIG)/www/auto_config
install -d $(INSTALL_BIN)
install -d $(INSTALL_DATA)
install -d $(INSTALL_DATA)/mapcache
install -m 755 -d $(INSTALL_LOG)
install -d $(INSTALL_WEB)/Aprs $(INSTALL_WEB)/images $(INSTALL_WEB)/KaMap $(INSTALL_WEB)/OpenLayers \
$(INSTALL_WEB)/style $(INSTALL_WEB)/www/dicons $(INSTALL_WEB)/XMLOverlay $(INSTALL_WEB)/jquery \
$(INSTALL_WEB)/jquery/images $(INSTALL_WEB)/i18n $(INSTALL_WEB)/i18n/msgs
install -d $(INSTALL_WEB)/KaMap/images $(INSTALL_WEB)/KaMap/images/icon_set_nomad \
$(INSTALL_WEB)/KaMap/scalebar $(INSTALL_WEB)/KaMap/tools
chown www-data.www-data $(INSTALL_DATA)/mapcache
install -m 644 htaccess $(INSTALL_WEB)/.htaccess
install -m 755 polaric-offline $(INSTALL_BIN)
install -m 755 polaric-online $(INSTALL_BIN)
install -m 644 form_full.php form_small.php index.php $(INSTALL_WEB)
install -m 644 iconx.png nrrl.gif proj4js-compressed.js robots.txt $(INSTALL_WEB)
install -m 644 images/* $(INSTALL_WEB)/images
install -m 644 style/*.css $(INSTALL_WEB)/style
install -m 644 Aprs/compiled.js Aprs/configSupport.js Aprs/iframeApi.js $(INSTALL_WEB)/Aprs
install -m 644 XMLOverlay/compiled.js $(INSTALL_WEB)/XMLOverlay
install -m 644 KaMap/kamap-core.js $(INSTALL_WEB)/KaMap
install -m 644 KaMap/images/*.png KaMap/images/*.gif KaMap/images/*.cur $(INSTALL_WEB)/KaMap/images
install -m 644 KaMap/images/icon_set_nomad/*.png KaMap/images/icon_set_nomad/*.gif $(INSTALL_WEB)/KaMap/images/icon_set_nomad
install -m 644 KaMap/scalebar/*.js KaMap/scalebar/*.gif KaMap/scalebar/*.css $(INSTALL_WEB)/KaMap/scalebar
install -m 644 KaMap/tools/*.js $(INSTALL_WEB)/KaMap/tools
install -m 644 i18n/compiled.js $(INSTALL_WEB)/i18n
install -m 644 i18n/msgs/*.json $(INSTALL_WEB)/i18n/msgs
cp -R OpenLayers/* $(INSTALL_WEB)/OpenLayers
# Config files are placed in /etc and should be symlinked from the webapp directory
install -m 644 mapconfig.js $(INSTALL_CONFIG)/mapconfig.js
install -m 644 mapcache.xml $(INSTALL_CONFIG)/mapcache.xml
install -m 644 webappconfig.php $(INSTALL_CONFIG)
# To keep Lintian happy (redundant license file)
rm $(INSTALL_WEB)/OpenLayers/lib/Firebug/license.txt
compile:
# Repeat p2json for each po file to be used
python po2json.py i18n/msgs/no.po
sh compile-js.sh
clean:
rm Aprs/compiled.js
rm XMLOverlay/compiled.js
rm KaMap/kamap-core.js
rm MobileApp/compiled.js
rm i18n/compiled.js