diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-16 12:57:54 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-16 12:57:54 +0000 |
commit | c953de7d1c4775d73e4798a09d6bc40a3e2b2815 (patch) | |
tree | be2b62368ab8f727b4b163ef4d10e9ea56a1defb | |
parent | 3043247280bffd00e53016e3ea92b6ec5f6d5536 (diff) | |
download | monitoring-plugins-c953de7d1c4775d73e4798a09d6bc40a3e2b2815.tar.gz |
fix too many sources problem for programs tha are symlinks to check_tcp
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@206 f882894a-f735-0410-b71e-b25c423dba1c
-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 0cd300ea..3e2d9078 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) | ||