[Alsaplayer-devel]PATCH: Makefile.am fix to enable DESTDIR
Daniel Resare
noa@metamatrix.se
29 Jul 2002 19:23:25 +0200
--=-Ne8RBWnFgtH1iCCXF0Bh
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
When building rpm packages 'make install' is often called with the
argument DESTDIR=something. This is an optional mechanism described in
GNU Coding Standards (http://www.gnu.org/prep/standards_53.html)
This trivial patch makes DESTDIR work everywhere in alsaplayer.
Again, please cc any replies to me as I'm not on the list.
/noa
--=-Ne8RBWnFgtH1iCCXF0Bh
Content-Disposition: attachment; filename=alsaplayer-0.99.71-buildroot.patch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-patch; name=alsaplayer-0.99.71-buildroot.patch;
charset=ISO-8859-15
diff -ur alsaplayer-0.99.71.vanilla/docs/Makefile.am alsaplayer-0.99.71/doc=
s/Makefile.am
--- alsaplayer-0.99.71.vanilla/docs/Makefile.am Tue Apr 16 02:12:22 2002
+++ alsaplayer-0.99.71/docs/Makefile.am Mon Jul 29 18:23:05 2002
@@ -23,14 +23,14 @@
if test -d reference; then rm -rf reference; fi
=20
install-data-local:
- $(mkinstalldirs) $(DOC_DIR)/reference/html
+ $(mkinstalldirs) $(DESTDIR)$(DOC_DIR)/reference/html
(installfiles=3D`echo reference/html/*.html`; \
if test "$$installfiles" =3D 'reference/html/*.html'; \
then echo '-- Nothing to install' ; \
else \
for i in $$installfiles reference/html/doxygen.png reference/html/doxyg=
en.css; do \
echo '-- Installing '$$i ; \
- $(INSTALL_DATA) $$i $(DOC_DIR)/reference/html; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(DOC_DIR)/reference/html; \
done; \
fi)
=20
--=-Ne8RBWnFgtH1iCCXF0Bh--