diff options
-rw-r--r-- | plugins/Makefile.am | 23 |
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 | ||
14 | EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \ | 13 | EXTRA_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 | ||
17 | check_tcp_programs = check_ftp check_imap check_nntp check_pop | ||
18 | |||
18 | EXTRA_DIST = t utils.c netutils.c popen.c getopt.h getopt.c getopt1.c \ | 19 | EXTRA_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 | ||
39 | check_ftp_SOURCES = check_tcp.c | ||
40 | check_imap_SOURCES = check_tcp.c | ||
41 | check_nntp_SOURCES = check_tcp.c | ||
42 | check_pop_SOURCES = check_tcp.c | ||
43 | |||
44 | check_dig_LDADD = $(BASEOBJS) popen.o | 40 | check_dig_LDADD = $(BASEOBJS) popen.o |
45 | check_disk_LDADD = $(BASEOBJS) popen.o | 41 | check_disk_LDADD = $(BASEOBJS) popen.o |
46 | check_dns_LDADD = $(BASEOBJS) popen.o | 42 | check_dns_LDADD = $(BASEOBJS) popen.o |
@@ -145,5 +141,18 @@ libgetopt.a: getopt.o getopt1.o | |||
145 | libsnprintf.a: snprintf.o | 141 | libsnprintf.a: snprintf.o |
146 | $(AR) -r $@ snprintf.o | 142 | $(AR) -r $@ snprintf.o |
147 | 143 | ||
148 | check_ftp check_imap check_nntp check_pop: check_tcp | 144 | all-local: $(check_tcp_programs) |
145 | |||
146 | $(check_tcp_programs): check_tcp | ||
149 | ln -sf check_tcp $@ | 147 | ln -sf check_tcp $@ |
148 | |||
149 | install-exec-hook: | ||
150 | for i in $(check_tcp_programs) ; do \ | ||
151 | ln -sf $(DESTDIR)$(libexecdir)/check_tcp $$i; \ | ||
152 | done | ||
153 | |||
154 | clean-local: | ||
155 | rm -f $(check_tcp_programs) | ||
156 | |||
157 | uninstall-local: | ||
158 | cd $(DESTDIR)$(libexecdir) && rm -f $(check_tcp_programs) | ||