-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
134 lines (111 loc) · 3.23 KB
/
Makefile.in
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
####################################################################
# Makefile for NagTrap
####################################################################
###############################
# Source code directories
###############################
SRC_SHARE=@srcdir@/share
SRC_CONFIG=@srcdir@/etc
SRC_PLUGIN=@srcdir@/plugin
###############################
# Compiler Settings
###############################
CC=@CC@
CFLAGS=@CFLAGS@ @DEFS@
LDFLAGS=@LDFLAGS@ @LIBS@
prefix=@prefix@
exec_prefix=@exec_prefix@
LOGDIR=@LOGDIR@
CFGDIR=@sysconfdir@
BINDIR=@bindir@
INCDIR=@includedir@
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@
COMMAND_OPTS=@COMMAND_OPTS@
HTMLDIR=@datarootdir@
LOCALSTATEDIR=@localstatedir@
HTTPD_CONF=@HTTPD_CONF@
CP=@CP@
PERL=@PERL@
###############################
# Tools
###############################
MKDIR=/bin/mkdir
###############################
# Global
###############################
PACKAGE_TARNAME=@PACKAGE_TARNAME@
PACKAGE_NAME=@PACKAGE_NAME@
PACKAGE_VERSION=@PACKAGE_VERSION@
###############################
# Installation
###############################
none:
@echo ""
@echo "*** Installation **********************************************"
@echo ""
@echo " make install"
@echo " - Makes a completely installation for nagtrap"
@echo ""
@echo ""
@echo "*** Support Notes *******************************************"
@echo ""
@echo "If you have questions about configuring or running Icinga,"
@echo "please make sure that you:"
@echo ""
@echo " - Look at the sample config files"
@echo ""
@echo "before you post a question to one of the mailing lists at"
@echo "Monitoring Portal:"
@echo "http://www.monitoring-portal.org"
@echo ""
@echo "Also make sure to include pertinent information that could"
@echo "help others help you. This might include:"
@echo ""
@echo " - What version of Icinga you are using"
@echo ""
@echo "*************************************************************"
@echo ""
@echo "Enjoy."
@echo ""
install:
$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)${prefix}
$(INSTALL) -m 755 $(COMMAND_OPTS) -d $(DESTDIR)$(LOCALSTATEDIR)
$(INSTALL) -m 755 $(COMMAND_OPTS) -d $(DESTDIR)$(LOGDIR)
cd $(SRC_SHARE) && $(MAKE) $@
cd $(SRC_CONFIG) && $(MAKE) $@
cd $(SRC_PLUGIN) && $(MAKE) $@
@echo ""
@echo ""
@echo ""
@echo "Installation if NagTrap succeeded."
@echo ""
@echo "Please check the new Apache2 configuration (@HTTPD_CONF@/nagtrap.conf)."
@echo ""
@echo "You can install it simply by invoking 'make install-webconf'."
@echo ""
@echo "*************************************************************"
@echo ""
@echo "Have fun!"
@echo ""
install-html:
cd $(SRC_SHARE) && $(MAKE) install
install-config:
cd $(SRC_CONFIG) && $(MAKE) install
install_log:
$(INSTALL) -m 755 $(COMMAND_OPTS) -d $(DESTDIR)$(LOCALSTATEDIR)
$(INSTALL) -m 755 $(INSTALL_OPTS_WEB) -d $(DESTDIR)$(LOGDIR)
install-done:
install-plugin:
cd $(SRC_PLUGIN) && $(MAKE) $@
install-webconf:
$(INSTALL) -m 644 etc/apache2/nagtrap.conf $(DESTDIR)$(HTTPD_CONF);
clean:
rm -f Makefile
rm -f config.log config.status subst
cd $(SRC_SHARE) && $(MAKE) $@
cd $(SRC_CONFIG) && $(MAKE) $@
cd $(SRC_PLUGIN) && $(MAKE) $@
distclean: clean
create-tarball:
./make-tarball --prefix ${PACKAGE_TARNAME}-${PACKAGE_VERSION}/