shithub: sox

Download patch

ref: a7b7403d7a322e4c65ee4eb23fe45e2855f909fb
parent: 90cb3fb6d54b9a41ed6f6c54a3365ef7e61277a9
author: cbagwell <cbagwell>
date: Mon Feb 14 23:40:05 EST 2011

Store images in a subdir which then lets re-enable install logic.

--- a/Makefile.am
+++ b/Makefile.am
@@ -60,6 +60,7 @@
 
 distclean-local:
 	$(RM) mingw32-config.cache
+	$(RM) -r -f soxpng
 
 # Rule for making HTML man pages
 #
@@ -69,12 +70,30 @@
 FIXHTML = sed 's,<head>,&<link rel="stylesheet" href="http://sox.sourceforge.net/pub/skins/sox/sox.css" type="text/css"></link>,' 
 
 .1.html .3.html .7.html:
-	groff -t -man -Thtml $(srcdir)/$< | $(FIXHTML) > $@
+	groff -t -man -Thtml -P -Dsoxpng $(srcdir)/$< | $(FIXHTML) > $@
 
 DOCHTML = sox.html soxi.html soxformat.html libsox.html
 html: $(DOCHTML)
 
-DISTCLEANFILES = $(DOCHTML) $(DOCPDF) $(DOCTXT) grohtml*
+install-html: html 	 
+	@$(NORMAL_INSTALL) 	 
+	test -z "$(htmldir)/soxpng" || $(MKDIR_P) "$(DESTDIR)$(htmldir)/soxpng"
+	@list='$(DOCHTML)'; for p in $$list; do \
+	if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	f=$(am__strip_dir) \
+	echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/soxpng/$$f'"; \
+	$(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/soxpng/$$f"; \
+	done
+
+uninstall-html: 	 
+	@$(NORMAL_UNINSTALL)
+	@list='$(DOCHTML)'; for p in $$list; do \
+	f=$(am__strip_dir) \
+	echo " $(RM) '$(DESTDIR)$(htmldir)/$$f'"; \
+	$(RM) "$(DESTDIR)$(htmldir)/$$f"; \
+	done
+
+DISTCLEANFILES = $(DOCHTML) $(DOCPDF) $(DOCTXT)
 
 install-data-hook:
 	cd $(DESTDIR)$(mandir)/man1 && $(RM) play.1 && $(LN_S) sox.1 play.1