ref: c9c4203ff86163742a5b6ecc0af367bc9ff10280
parent: ea530d1435a98cfdebcaf0fff1d3e97c18d1ad78
author: cbagwell <cbagwell>
date: Wed Oct 29 12:30:02 EDT 2008
Add rules to install/uninstall PDF and HTML files that we can generate.
--- a/INSTALL
+++ b/INSTALL
@@ -28,7 +28,7 @@
make
make install
-Optionally:
+Optionally, to test the executable:
make installcheck
@@ -35,6 +35,11 @@
(At the moment you can't run "make check", because when built
modularly SoX can't use its format and effect modules until
it is installed.)
+
+Optionally, to install HTML or PDF versions of manual pages:
+
+ make install-pdf
+ make install-html
There are several optional parameters that you may pass to the
configure script to customize SoX for your applications. Run
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,6 +35,24 @@
DOCPDF = sox.pdf soxi.pdf soxformat.pdf libsox.pdf
pdf: $(DOCPDF)
+install-pdf: pdf
+ @$(NORMAL_INSTALL)
+ test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)"
+ @list='$(DOCPDF)'; 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)$(pdfdir)/$$f'"; \
+ $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
+ done
+
+uninstall-pdf:
+ @$(NORMAL_UNINSTALL)
+ @list='$(DOCPDF)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " $(RM) '$(DESTDIR)$(pdfdir)/$$f'"; \
+ $(RM) "$(DESTDIR)$(pdfdir)/$$f"; \
+ done
+
# Rule for making HTML man pages
#
# Get rid on unneeded Content-Type, man directory and manpage index in extension.
@@ -50,6 +68,24 @@
DOCHTML = sox.html soxi.html soxformat.html libsox.html
html: $(DOCHTML)
+
+install-html: html
+ @$(NORMAL_INSTALL)
+ test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"
+ @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)/$$f'"; \
+ $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$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)