shithub: sox

Download patch

ref: b4033e7c7da51c1d3fb3d3636faf223470b334e3
parent: 1fdbf2dc755989f40985fa3e43761ba16b57e879
author: rrt <rrt>
date: Tue Mar 11 21:13:24 EDT 2008

Uninstall play, rec, soxi links and man page links.

--- a/Makefile.am
+++ b/Makefile.am
@@ -36,6 +36,10 @@
 	cd $(DESTDIR)$(mandir)/man1 && $(RM) play.1 && $(LN_S) sox.1 play.1
 	cd $(DESTDIR)$(mandir)/man1 && $(RM) rec.1 && $(LN_S) sox.1 rec.1
 
+uninstall-hook:
+	$(RM) $(DESTDIR)$(mandir)/man1/play.1
+	$(RM) $(DESTDIR)$(mandir)/man1/rec.1
+
 # Automatically update libtool script if it gets out-of-date
 libtool: $(LIBTOOL_DEPS)
 	$(SHELL) ./config.status --recheck
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -300,6 +300,11 @@
 		cd $(DESTDIR)$(bindir); $(RM) play rec soxi; $(LN_S) sox play; $(LN_S) sox rec; $(LN_S) sox soxi; \
 	fi
 
+uninstall-hook:
+	if test "$(PLAYRECLINKS)" = "yes"; then	\
+		cd $(DESTDIR)$(bindir); $(RM) play rec soxi \
+	fi
+
 clean-local:
 	$(RM) play rec soxi
 	$(RM) sox_sample_test