Browse Source

another try at portable symlinking

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@214 f882894a-f735-0410-b71e-b25c423dba1c
Karl DeBisschop 23 years ago
parent
commit
aa728ac676
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/Makefile.am

+ 2 - 2
plugins/Makefile.am

@@ -137,8 +137,8 @@ $(check_tcp_programs): check_tcp
 	ln -sf check_tcp $@
 
 install-exec-hook:
-	cd $(DESTDIR)$(libexecdir)
-	for i in $(check_tcp_programs) ; do ln -sf check_tcp $$i ; done
+	cd $(DESTDIR)$(libexecdir) && \
+	for i in $(check_tcp_programs) ; do rm $$i; ln -sf check_tcp $$i ; done
 
 clean-local:
 	rm -f $(check_tcp_programs)