[Nagiosplug-checkins] CVS: nagiosplug/plugins Makefile.am,1.12,1.13

Karl DeBisschop kdebisschop at users.sourceforge.net
Sat Nov 16 04:58:01 CET 2002


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv28083/plugins

Modified Files:
	Makefile.am 
Log Message:
fix too many sources problem for programs tha are symlinks to check_tcp

Index: Makefile.am
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/Makefile.am,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** Makefile.am	14 Nov 2002 18:23:24 -0000	1.12
--- Makefile.am	16 Nov 2002 12:57:54 -0000	1.13
***************
*** 9,13 ****
  	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@
  
--- 9,12 ----
***************
*** 16,19 ****
--- 15,20 ----
  	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
***************
*** 37,45 ****
  # 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
--- 38,41 ----
***************
*** 146,149 ****
  	$(AR) -r $@ snprintf.o
  
! check_ftp check_imap check_nntp check_pop: check_tcp
  	ln -sf check_tcp $@
--- 142,158 ----
  	$(AR) -r $@ snprintf.o
  
! 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)





More information about the Commits mailing list