From c953de7d1c4775d73e4798a09d6bc40a3e2b2815 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Sat, 16 Nov 2002 12:57:54 +0000 Subject: 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 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 \ 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) -- cgit v0.10-9-g596f