Source
xxxxxxxxxx
4
4
5
5
SUBDIRS = \
6
6
src \
7
7
database \
8
8
man \
9
9
misc
10
10
11
11
EXTRA_DIST = \
12
12
bin \
13
13
build \
14
-
frontends \
14
+
ui \
15
15
include \
16
16
conf \
17
17
sass
18
18
19
19
## "dist-hook" run after the distribution directory is filled, but before the actual tar (or shar) file is created.
20
20
dist-hook:
21
21
# File revision number must be numeric (Git commit hash cannot be used).
22
22
# Therefore to make it numeric and meaningful it is artificially composed from:
23
23
# - branch (development or release),
24
24
# - type (alpha, beta, rc or release),
47
47
$(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java.new; \
48
48
mv $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java.new \
49
49
$(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java; \
50
50
cat $(top_distdir)/src/go/pkg/version/version.go|sed "s/{ZABBIX_RC_NUM}/$$branch$$type_num$$type_count/g"| \
51
51
sed "s/{ZABBIX_REVISION}/$$zabbix_revision/g" > $(top_distdir)/src/go/pkg/version/version.go.new; \
52
52
mv $(top_distdir)/src/go/pkg/version/version.go.new $(top_distdir)/src/go/pkg/version/version.go
53
53
54
54
rm -rf `find $(top_distdir) -name ".gitignore" -o -name ".gitattributes"`
55
55
rm -f $(top_distdir)/include/config.h
56
56
rm -f $(top_distdir)/include/config.h.in~
57
-
rm -f $(top_distdir)/frontends/php/conf/zabbix.conf.php
58
-
rm -rf $(top_distdir)/frontends/php/tests
57
+
rm -f $(top_distdir)/ui/conf/zabbix.conf.php
58
+
rm -rf $(top_distdir)/ui/tests
59
59
rm -rf $(top_distdir)/sass/img_source
60
60
61
61
if DBSCHEMA
62
62
dbschema_mysql:
63
63
cd database/mysql && \
64
64
$(MAKE) $(AM_MAKEFLAGS) data.sql && \
65
65
$(MAKE) $(AM_MAKEFLAGS) schema.sql
66
66
67
67
dbschema_oracle:
68
68
cd database/oracle && \
81
81
$(MAKE) $(AM_MAKEFLAGS) schema.sql
82
82
83
83
dbschema_c:
84
84
cd src/libs/zbxdbhigh && \
85
85
$(MAKE) $(AM_MAKEFLAGS) dbschema.c
86
86
87
87
dbschema: dbschema_mysql dbschema_oracle dbschema_postgresql dbschema_sqlite3 dbschema_c
88
88
endif
89
89
90
90
gettext:
91
-
frontends/php/locale/make_mo.sh
91
+
ui/locale/make_mo.sh
92
92
93
93
css_theme_blue:
94
-
sass --no-cache --sourcemap=none sass/stylesheets/sass/screen.scss frontends/php/assets/styles/blue-theme.css
95
-
cp frontends/php/assets/styles/blue-theme.css sass/stylesheets/screen.css
94
+
sass --no-cache --sourcemap=none sass/stylesheets/sass/screen.scss ui/assets/styles/blue-theme.css
95
+
cp ui/assets/styles/blue-theme.css sass/stylesheets/screen.css
96
96
97
97
css_theme_dark:
98
-
sass --no-cache --sourcemap=none sass/stylesheets/sass/dark-theme.scss frontends/php/assets/styles/dark-theme.css
99
-
cp frontends/php/assets/styles/dark-theme.css sass/stylesheets/dark-theme.css
98
+
sass --no-cache --sourcemap=none sass/stylesheets/sass/dark-theme.scss ui/assets/styles/dark-theme.css
99
+
cp ui/assets/styles/dark-theme.css sass/stylesheets/dark-theme.css
100
100
101
101
css_hc_light:
102
-
sass --no-cache --sourcemap=none sass/stylesheets/sass/hc-light.scss frontends/php/assets/styles/hc-light.css
103
-
cp frontends/php/assets/styles/hc-light.css sass/stylesheets/hc-light.css
102
+
sass --no-cache --sourcemap=none sass/stylesheets/sass/hc-light.scss ui/assets/styles/hc-light.css
103
+
cp ui/assets/styles/hc-light.css sass/stylesheets/hc-light.css
104
104
105
105
css_hc_dark:
106
-
sass --no-cache --sourcemap=none sass/stylesheets/sass/hc-dark.scss frontends/php/assets/styles/hc-dark.css
107
-
cp frontends/php/assets/styles/hc-dark.css sass/stylesheets/hc-dark.css
106
+
sass --no-cache --sourcemap=none sass/stylesheets/sass/hc-dark.scss ui/assets/styles/hc-dark.css
107
+
cp ui/assets/styles/hc-dark.css sass/stylesheets/hc-dark.css
108
108
109
109
css_icons:
110
-
cp sass/img/icon-sprite.svg frontends/php/assets/img/
111
-
cp sass/img/browser-sprite.png frontends/php/assets/img/
112
-
cp sass/apple-touch-icon-120x120-precomposed.png frontends/php/assets/img/
113
-
cp sass/apple-touch-icon-152x152-precomposed.png frontends/php/assets/img/
114
-
cp sass/apple-touch-icon-180x180-precomposed.png frontends/php/assets/img/
115
-
cp sass/apple-touch-icon-76x76-precomposed.png frontends/php/assets/img/
116
-
cp sass/ms-tile-144x144.png frontends/php/assets/img/
117
-
cp sass/touch-icon-192x192.png frontends/php/assets/img/
118
-
cp sass/favicon.ico frontends/php/
110
+
cp sass/img/icon-sprite.svg ui/assets/img/
111
+
cp sass/img/browser-sprite.png ui/assets/img/
112
+
cp sass/apple-touch-icon-120x120-precomposed.png ui/assets/img/
113
+
cp sass/apple-touch-icon-152x152-precomposed.png ui/assets/img/
114
+
cp sass/apple-touch-icon-180x180-precomposed.png ui/assets/img/
115
+
cp sass/apple-touch-icon-76x76-precomposed.png ui/assets/img/
116
+
cp sass/ms-tile-144x144.png ui/assets/img/
117
+
cp sass/touch-icon-192x192.png ui/assets/img/
118
+
cp sass/favicon.ico ui/
119
119
120
120
css: css_theme_blue css_theme_dark css_hc_light css_hc_dark css_icons
121
121
122
122
## cmocka test support
123
123
if ZBXCMOCKA
124
124
WRAP_DB_FUNCS = \
125
125
-Wl,--wrap=zbx_db_vselect \
126
126
-Wl,--wrap=zbx_db_select_n \
127
127
-Wl,--wrap=zbx_db_fetch \
128
128
-Wl,--wrap=__zbx_DBexecute \