summaryrefslogtreecommitdiff
blob: 54378b2d728bd816d3e5b7dfa5a1f9e9e86d3449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/src/tools/Makefile.am
+++ b/src/tools/Makefile.am
@@ -75,10 +75,7 @@
 # see http://lists.xiph.org/pipermail/ogg-dev/2008-July/001083.html
 install-exec-local:
 	for p in dump diff info merge rip ; do \
-	  if test -e $(exec_prefix)/bin/oggz$$p ; then \
-	    $(RM) $(exec_prefix)/bin/oggz$$p ; \
-	    $(LN_S) $(exec_prefix)/bin/oggz-$$p $(exec_prefix)/bin/oggz$$p ; \
-	  fi ; \
+	  $(LN_S) $(exec_prefix)/bin/oggz-$$p $(DESTDIR)$(exec_prefix)/bin/oggz$$p ; \
 	done
 
 # On 'make uninstall', remove the deprecated tool -- but only if it is a