summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3043247)
raw | patch | inline | side by side (parent: 3043247)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 16 Nov 2002 12:57:54 +0000 (12:57 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 16 Nov 2002 12:57:54 +0000 (12:57 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@206 f882894a-f735-0410-b71e-b25c423dba1c
plugins/Makefile.am | patch | blob | history |
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 0cd300ea76b31bf9e93ad229eb69c83e6b8aef3d..3e2d907869b49481fa988702457d381b1caf02d3 100644 (file)
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
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
##############################################################################
# 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
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)