forked from lingej/pnp4nagios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
153 lines (125 loc) · 3.31 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
###############################
# Makefile for PNP
#
# Last Modified: 12-10-2006
###############################
# Source code directories
SRC_BASE=@srcdir@/src
SRC_SHARE=@srcdir@/share
SRC_LIB=@srcdir@/lib
SRC_SCRIPTS=@srcdir@/scripts
SRC_CONFIG=@srcdir@/sample-config
SRC_MAN=@srcdir@/man
SRC_CONTRIB=@srcdir@/contrib
SRC_HELPERS=@srcdir@/helpers
CC=@CC@
CFLAGS=@CFLAGS@ @DEFS@
LDFLAGS=@LDFLAGS@ @LIBS@
prefix=@prefix@
exec_prefix=@exec_prefix@
LOGDIR=@localstatedir@
CFGDIR=@sysconfdir@
BINDIR=@bindir@
LIBEXECDIR=@libexecdir@
LIBDIR=@libdir@
KOHANA=@KOHANA@
CGIDIR=@sbindir@
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@
DATAROOTDIR=@datarootdir@
CP=@CP@
none:
@echo "Please supply a command line argument (i.e. 'make all'). Other targets are:"
@echo " clean"
@echo " install install-init install-config install-processperfdata install-html fullinstall"
@echo " install-plugins"
all:
cd $(SRC_BASE) && $(MAKE)
cd $(SRC_SHARE) && $(MAKE)
cd $(SRC_SCRIPTS) && $(MAKE)
chmod a+r $(SRC_CONTRIB)/ssi/status-header.ssi
chmod a+xr $(SRC_HELPERS)/w2h.pl
@echo ""
@echo "*** Compile finished ***"
@echo ""
@echo " make install"
@echo " - This installs the main program and HTML files"
@echo ""
@echo "Enjoy."
@echo ""
scripts:
cd $(SRC_SCRIPTS) && $(MAKE)
share:
cd $(SRC_SHARE) && $(MAKE)
clean:
cd $(SRC_BASE) && $(MAKE) $@
cd $(SRC_MAN) && $(MAKE) $@
cd $(SRC_SHARE) && $(MAKE) $@
cd $(SRC_LIB) && $(MAKE) $@
cd $(SRC_SCRIPTS) && $(MAKE) $@
cd $(SRC_CONFIG) && $(MAKE) $@
-rm -f *.cfg core
-rm -f *~ *.*~ */*~ */*.*~
-rm -f config.log config.status config.cache
distclean:
cd $(SRC_BASE) && $(MAKE) $@
cd $(SRC_MAN) && $(MAKE) $@
cd $(SRC_SHARE) && $(MAKE) $@
cd $(SRC_LIB) && $(MAKE) $@
cd $(SRC_SCRIPTS) && $(MAKE) $@
cd $(SRC_CONFIG) && $(MAKE) $@
-rm -f *.cfg core
-rm -f *~ *.*~ */*~ */*.*~
-rm -f config.log config.status config.cache
rm -f Makefile include/stamp-h1 include/config.h config.status config.log
rm -f subst summary
rm -f $(SRC_CONTRIB)/ssi/status-header.ssi
rm -f $(SRC_HELPERS)/w2h.pl
devclean: distclean
install-html:
cd $(SRC_SHARE) && $(MAKE) install
install-base:
cd $(SRC_BASE) && $(MAKE) install
install-man:
cd $(SRC_MAN) && $(MAKE) install
install-processperfdata:
cd $(SRC_SCRIPTS) && $(MAKE) install
install-init:
cd $(SRC_SCRIPTS) && $(MAKE) $@
install-config:
cd $(SRC_CONFIG) && $(MAKE) $@
install-webconf:
cd $(SRC_CONFIG) && $(MAKE) $@
install-plugins:
cd $(SRC_SCRIPTS) && $(MAKE) $@
install:
cd $(SRC_BASE) && $(MAKE) $@
cd $(SRC_MAN) && $(MAKE) $@
cd $(SRC_SHARE) && $(MAKE) $@
if [ x$(KOHANA) = xyes ]; then \
cd $(SRC_LIB) && $(MAKE) $@; \
fi
cd $(SRC_SCRIPTS) && $(MAKE) $@
cd $(SRC_CONFIG) && $(MAKE) $@
$(MAKE) install-basic
install-unstripped:
cd $(SRC_BASE) && $(MAKE) $@
cd $(SRC_SHARE) && $(MAKE) $@
cd $(SRC_SCRIPTS) && $(MAKE) $@
$(MAKE) install-basic
install-basic:
@echo ""
@echo "*** Main program, Scripts and HTML files installed ***"
@echo ""
@echo "Please run 'make install-webconf' to install the"
@echo "web configuration file"
@echo ""
@echo "Please run 'make install-config' to install sample"
@echo "configuration files"
@echo ""
@echo "Please run 'make install-init' if you want to use"
@echo "BULK Mode with NPCD"
@echo ""
@echo ""
@echo ""
fullinstall: install install-webconf install-init install-config