Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 186 lines (154 sloc) 4.181 kB
66e5cfa @lingej kohana source
authored
1 ###############################
2 # Makefile for PNP
3 #
4 # Last Modified: 12-10-2006
5 ###############################
6
7
8 # Source code directories
9 SRC_BASE=@srcdir@/src
10 SRC_SHARE=@srcdir@/share
fbc9e94 Makefile for Kohana
root authored
11 SRC_LIB=@srcdir@/lib
66e5cfa @lingej kohana source
authored
12 SRC_SCRIPTS=@srcdir@/scripts
13 SRC_CONFIG=@srcdir@/sample-config
14 SRC_MAN=@srcdir@/man
15 SRC_CONTRIB=@srcdir@/contrib
1cc70fc @lingej Documentation is now part of the package
authored
16 SRC_HELPERS=@srcdir@/helpers
66e5cfa @lingej kohana source
authored
17
18 CC=@CC@
19 CFLAGS=@CFLAGS@ @DEFS@
20 LDFLAGS=@LDFLAGS@ @LIBS@
21
22 prefix=@prefix@
3065c64 @lingej cleanup
authored
23 exec_prefix=@exec_prefix@
66e5cfa @lingej kohana source
authored
24 LOGDIR=@localstatedir@
25 CFGDIR=@sysconfdir@
26 BINDIR=@bindir@
27 LIBEXECDIR=@libexecdir@
fbc9e94 Makefile for Kohana
root authored
28 LIBDIR=@libdir@
4b261ff @lingej new configure option --without-kohana and --with-kohana_system to sep…
authored
29 KOHANA=@KOHANA@
66e5cfa @lingej kohana source
authored
30 CGIDIR=@sbindir@
31 INSTALL=@INSTALL@
32 INSTALL_OPTS=@INSTALL_OPTS@
33 DATAROOTDIR=@datarootdir@
34
35 CP=@CP@
2eddb4f @lingej print summary after 'make fullinstall'
authored
36 PERL=@PERL@
66e5cfa @lingej kohana source
authored
37
38 none:
39 @echo "Please supply a command line argument (i.e. 'make all'). Other targets are:"
40 @echo " clean"
41 @echo " install install-init install-config install-processperfdata install-html fullinstall"
42 @echo " install-plugins"
43
44 all:
45 cd $(SRC_BASE) && $(MAKE)
46 cd $(SRC_SHARE) && $(MAKE)
47 cd $(SRC_SCRIPTS) && $(MAKE)
3742b43 @lingej chmod a+r status-header.ssi
authored
48 chmod a+r $(SRC_CONTRIB)/ssi/status-header.ssi
1cc70fc @lingej Documentation is now part of the package
authored
49 chmod a+xr $(SRC_HELPERS)/w2h.pl
66e5cfa @lingej kohana source
authored
50
51 @echo ""
52 @echo "*** Compile finished ***"
53 @echo ""
54 @echo " make install"
55 @echo " - This installs the main program and HTML files"
56 @echo ""
2eddb4f @lingej print summary after 'make fullinstall'
authored
57 @echo " make fullinstall"
58 @echo " - This installs the main program, runlevel scripts, config and HTML files"
59 @echo ""
66e5cfa @lingej kohana source
authored
60 @echo "Enjoy."
61 @echo ""
62
63 scripts:
64 cd $(SRC_SCRIPTS) && $(MAKE)
65
66 share:
67 cd $(SRC_SHARE) && $(MAKE)
68
69 clean:
70 cd $(SRC_BASE) && $(MAKE) $@
52db8d1 @haraldj added Makefile for not only building but also installing npcd manpage…
haraldj authored
71 cd $(SRC_MAN) && $(MAKE) $@
66e5cfa @lingej kohana source
authored
72 cd $(SRC_SHARE) && $(MAKE) $@
fbc9e94 Makefile for Kohana
root authored
73 cd $(SRC_LIB) && $(MAKE) $@
66e5cfa @lingej kohana source
authored
74 cd $(SRC_SCRIPTS) && $(MAKE) $@
75 cd $(SRC_CONFIG) && $(MAKE) $@
76 -rm -f *.cfg core
77 -rm -f *~ *.*~ */*~ */*.*~
78 -rm -f config.log config.status config.cache
79
80 distclean:
81 cd $(SRC_BASE) && $(MAKE) $@
52db8d1 @haraldj added Makefile for not only building but also installing npcd manpage…
haraldj authored
82 cd $(SRC_MAN) && $(MAKE) $@
66e5cfa @lingej kohana source
authored
83 cd $(SRC_SHARE) && $(MAKE) $@
fbc9e94 Makefile for Kohana
root authored
84 cd $(SRC_LIB) && $(MAKE) $@
66e5cfa @lingej kohana source
authored
85 cd $(SRC_SCRIPTS) && $(MAKE) $@
86 cd $(SRC_CONFIG) && $(MAKE) $@
87 -rm -f *.cfg core
88 -rm -f *~ *.*~ */*~ */*.*~
89 -rm -f config.log config.status config.cache
90 rm -f Makefile include/stamp-h1 include/config.h config.status config.log
91 rm -f subst summary
9778ba6 @lingej Firt step to get the popups working ( early stage )
authored
92 rm -f $(SRC_CONTRIB)/ssi/status-header.ssi
d0b72f0 @haraldj fix various Makefile issues
haraldj authored
93 rm -f $(SRC_HELPERS)/w2h.pl
66e5cfa @lingej kohana source
authored
94
95 devclean: distclean
96
97 install-html:
98 cd $(SRC_SHARE) && $(MAKE) install
99
100 install-base:
101 cd $(SRC_BASE) && $(MAKE) install
102
52db8d1 @haraldj added Makefile for not only building but also installing npcd manpage…
haraldj authored
103 install-man:
104 cd $(SRC_MAN) && $(MAKE) install
105
66e5cfa @lingej kohana source
authored
106 install-processperfdata:
107 cd $(SRC_SCRIPTS) && $(MAKE) install
108
109 install-init:
fbc9e94 Makefile for Kohana
root authored
110 cd $(SRC_SCRIPTS) && $(MAKE) $@
66e5cfa @lingej kohana source
authored
111
112 install-config:
fbc9e94 Makefile for Kohana
root authored
113 cd $(SRC_CONFIG) && $(MAKE) $@
114
7664283 @lingej Feature: Install process_perfdata.cfg and npcd.cfg by default
authored
115 @echo ""
116 @echo "*** PNP4Nagios sample config files installed ***"
117 @echo ""
118 @echo "Please run 'make install-init' if you want to use"
119 @echo "BULK Mode with NPCD"
120 @echo ""
121 @echo ""
122 @echo ""
123
fbc9e94 Makefile for Kohana
root authored
124 install-webconf:
125 cd $(SRC_CONFIG) && $(MAKE) $@
66e5cfa @lingej kohana source
authored
126
7664283 @lingej Feature: Install process_perfdata.cfg and npcd.cfg by default
authored
127
128 @echo ""
129 @echo "*** Apache config file installed ***"
130 @echo ""
131 @echo "Restart your apache webserver to activete your changes."
132 @echo ""
133 @echo "Please run 'make install-config' to install sample"
134 @echo "configuration files"
135 @echo ""
136 @echo "Please run 'make install-init' if you want to use"
137 @echo "BULK Mode with NPCD"
138 @echo ""
139 @echo ""
140 @echo ""
141
66e5cfa @lingej kohana source
authored
142 install-plugins:
fbc9e94 Makefile for Kohana
root authored
143 cd $(SRC_SCRIPTS) && $(MAKE) $@
66e5cfa @lingej kohana source
authored
144
145 install:
146 cd $(SRC_BASE) && $(MAKE) $@
52db8d1 @haraldj added Makefile for not only building but also installing npcd manpage…
haraldj authored
147 cd $(SRC_MAN) && $(MAKE) $@
66e5cfa @lingej kohana source
authored
148 cd $(SRC_SHARE) && $(MAKE) $@
24b5209 @lingej BUGFIX: --without-kohana makefile nightmare
authored
149 if [ x$(KOHANA) = xyes ]; then \
150 cd $(SRC_LIB) && $(MAKE) $@; \
151 fi
152
66e5cfa @lingej kohana source
authored
153 cd $(SRC_SCRIPTS) && $(MAKE) $@
154 cd $(SRC_CONFIG) && $(MAKE) $@
155
156 @echo ""
157 @echo "*** Main program, Scripts and HTML files installed ***"
158 @echo ""
342ea99 @wnieder changes for make-webconf
wnieder authored
159 @echo "Please run 'make install-webconf' to install the"
160 @echo "web configuration file"
161 @echo ""
66e5cfa @lingej kohana source
authored
162 @echo "Please run 'make install-config' to install sample"
163 @echo "configuration files"
164 @echo ""
165 @echo "Please run 'make install-init' if you want to use"
166 @echo "BULK Mode with NPCD"
167 @echo ""
168 @echo ""
169 @echo ""
170
7664283 @lingej Feature: Install process_perfdata.cfg and npcd.cfg by default
authored
171 install-unstripped:
172 cd $(SRC_BASE) && $(MAKE) $@
173 cd $(SRC_SHARE) && $(MAKE) $@
174 cd $(SRC_SCRIPTS) && $(MAKE) $@
175 $(MAKE) install-basic
176
177 fullinstall: install install-webconf install-config install-init
178
2eddb4f @lingej print summary after 'make fullinstall'
authored
179 $(PERL) summary fullinstall
7664283 @lingej Feature: Install process_perfdata.cfg and npcd.cfg by default
authored
180 @echo ""
181 @echo "*** Main program, Scripts and HTML files installed ***"
182 @echo ""
2eddb4f @lingej print summary after 'make fullinstall'
authored
183 @echo "Enjoy."
184 @echo ""
66e5cfa @lingej kohana source
authored
185
Something went wrong with that request. Please try again.