summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/Makefile.am23
1 files changed, 16 insertions, 7 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 0cd300e..3e2d907 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -8,13 +8,14 @@ libexec_PROGRAMS = check_disk check_dummy check_http check_load \
8 check_mrtg check_mrtgtraf check_nwstat check_overcr check_ping \ 8 check_mrtg check_mrtgtraf check_nwstat check_overcr check_ping \
9 check_procs check_real check_smtp check_ssh check_tcp check_time \ 9 check_procs check_real check_smtp check_ssh check_tcp check_time \
10 check_udp check_ups check_users check_vsz negate urlize \ 10 check_udp check_ups check_users check_vsz negate urlize \
11 check_ftp check_imap check_nntp check_pop \
12 @EXTRAS@ 11 @EXTRAS@
13 12
14EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \ 13EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \
15 check_swap check_fping check_ldap check_game check_dig \ 14 check_swap check_fping check_ldap check_game check_dig \
16 check_nagios check_by_ssh check_dns 15 check_nagios check_by_ssh check_dns
17 16
17check_tcp_programs = check_ftp check_imap check_nntp check_pop
18
18EXTRA_DIST = t utils.c netutils.c popen.c getopt.h getopt.c getopt1.c \ 19EXTRA_DIST = t utils.c netutils.c popen.c getopt.h getopt.c getopt1.c \
19 snprintf.c getloadavg.c 20 snprintf.c getloadavg.c
20 21
@@ -36,11 +37,6 @@ AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@
36############################################################################## 37##############################################################################
37# the actual targets 38# the actual targets
38 39
39check_ftp_SOURCES = check_tcp.c
40check_imap_SOURCES = check_tcp.c
41check_nntp_SOURCES = check_tcp.c
42check_pop_SOURCES = check_tcp.c
43
44check_dig_LDADD = $(BASEOBJS) popen.o 40check_dig_LDADD = $(BASEOBJS) popen.o
45check_disk_LDADD = $(BASEOBJS) popen.o 41check_disk_LDADD = $(BASEOBJS) popen.o
46check_dns_LDADD = $(BASEOBJS) popen.o 42check_dns_LDADD = $(BASEOBJS) popen.o
@@ -145,5 +141,18 @@ libgetopt.a: getopt.o getopt1.o
145libsnprintf.a: snprintf.o 141libsnprintf.a: snprintf.o
146 $(AR) -r $@ snprintf.o 142 $(AR) -r $@ snprintf.o
147 143
148check_ftp check_imap check_nntp check_pop: check_tcp 144all-local: $(check_tcp_programs)
145
146$(check_tcp_programs): check_tcp
149 ln -sf check_tcp $@ 147 ln -sf check_tcp $@
148
149install-exec-hook:
150 for i in $(check_tcp_programs) ; do \
151 ln -sf $(DESTDIR)$(libexecdir)/check_tcp $$i; \
152 done
153
154clean-local:
155 rm -f $(check_tcp_programs)
156
157uninstall-local:
158 cd $(DESTDIR)$(libexecdir) && rm -f $(check_tcp_programs)