-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
38 lines (32 loc) · 1.33 KB
/
Makefile.am
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
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
src \
create \
man \
misc \
upgrades
EXTRA_DIST = \
bin \
build \
frontends \
include \
CREDITS
## "dist-hook" run after the distribution directory is filled, but before the actual tar (or shar) file is created.
dist-hook:
@zabbix_revision=`svn info|grep "Last Changed Rev"|awk '{print $$4;}'`; \
cat $(top_distdir)/include/common.h|sed "s/{ZABBIX_REVISION}/$$zabbix_revision/g" >$(top_distdir)/include/common.h.new
mv $(top_distdir)/include/common.h.new $(top_distdir)/include/common.h
rm -rf `find $(top_distdir) -name ".svn"`
rm -f $(top_distdir)/include/config.h
rm -f $(top_distdir)/frontends/php/conf/zabbix.conf.php
dbschema:
create/schema/gen.pl ibm_db2 > create/schema/ibm_db2.sql
create/schema/gen.pl mysql > create/schema/mysql.sql
create/schema/gen.pl oracle > create/schema/oracle.sql
create/schema/gen.pl postgresql > create/schema/postgresql.sql
create/schema/gen.pl sqlite > create/schema/sqlite.sql
create/schema/gen.pl c > src/libs/zbxdbhigh/dbschema.c
echo -e "\n#ifdef HAVE_SQLITE3\nconst char *db_schema= {\"\\" >>src/libs/zbxdbhigh/dbschema.c
create/schema/gen.pl sqlite|tr -s '\t' ' '|sed -e 's/$$/\\/' >>src/libs/zbxdbhigh/dbschema.c
echo -e "\"};\n#endif /* HAVE_SQLITE3 */\n" >>src/libs/zbxdbhigh/dbschema.c