aboutsummaryrefslogtreecommitdiff
path: root/plugins/Makefile.am
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-11-16 12:57:54 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-11-16 12:57:54 +0000
commitc953de7d1c4775d73e4798a09d6bc40a3e2b2815 (patch)
treebe2b62368ab8f727b4b163ef4d10e9ea56a1defb /plugins/Makefile.am
parent3043247280bffd00e53016e3ea92b6ec5f6d5536 (diff)
downloadmonitoring-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
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r--plugins/Makefile.am23
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 \
check_mrtg check_mrtgtraf check_nwstat check_overcr check_ping \
check_procs check_real check_smtp check_ssh check_tcp check_time \
check_udp check_ups check_users check_vsz negate urlize \
- check_ftp check_imap check_nntp check_pop \
@EXTRAS@
EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \
check_swap check_fping check_ldap check_game check_dig \
check_nagios check_by_ssh check_dns
+check_tcp_programs = check_ftp check_imap check_nntp check_pop
+
EXTRA_DIST = t utils.c netutils.c popen.c getopt.h getopt.c getopt1.c \
snprintf.c getloadavg.c
@@ -36,11 +37,6 @@ AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@
##############################################################################
# the actual targets
-check_ftp_SOURCES = check_tcp.c
-check_imap_SOURCES = check_tcp.c
-check_nntp_SOURCES = check_tcp.c
-check_pop_SOURCES = check_tcp.c
-
check_dig_LDADD = $(BASEOBJS) popen.o
check_disk_LDADD = $(BASEOBJS) popen.o
check_dns_LDADD = $(BASEOBJS) popen.o
@@ -145,5 +141,18 @@ libgetopt.a: getopt.o getopt1.o
libsnprintf.a: snprintf.o
$(AR) -r $@ snprintf.o
-check_ftp check_imap check_nntp check_pop: check_tcp
+all-local: $(check_tcp_programs)
+
+$(check_tcp_programs): check_tcp
ln -sf check_tcp $@
+
+install-exec-hook:
+ for i in $(check_tcp_programs) ; do \
+ ln -sf $(DESTDIR)$(libexecdir)/check_tcp $$i; \
+ done
+
+clean-local:
+ rm -f $(check_tcp_programs)
+
+uninstall-local:
+ cd $(DESTDIR)$(libexecdir) && rm -f $(check_tcp_programs)