Add %make_install macro that does the "right thing" wrt modern autotools
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 14 Aug 2009 08:27:57 +0000 (11:27 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 14 Aug 2009 08:27:57 +0000 (11:27 +0300)
- old %makeinstall for broken/ancient autotools left untouched for
  backwards compatibility

macros.in

index fe5089f..4bd81cb 100644 (file)
--- a/macros.in
+++ b/macros.in
@@ -1033,7 +1033,12 @@ print (t)\
        --infodir=%{_infodir}
 
 #------------------------------------------------------------------------------
-# The make install analogue of %configure:
+# The make install analogue of %configure for modern autotools:
+%make_install make install DESTDIR=%{?buildroot}
+
+#------------------------------------------------------------------------------
+# Former make install analogue, kept for compatibility and for old/broken
+#  packages that don't support DESTDIR properly.
 %makeinstall \
   make \\\
        prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\