Archive:PackagingDrafts/MakeInstall

From FedoraProject

Jump to: navigation, search

The packaging guidelines are not clear in explaining why %makeinstall ought to be avoided. Here's a proposed update:

Why the %makeinstall macro should not be used

Fedora's RPM includes a %makeinstall macro but it must NOT be used when make install DESTDIR=%{buildroot} works. %makeinstall is a kludge that can work with Makefiles that don't make use of the DESTDIR variable but it has the following potential issues:

Instead, Fedora packages should use: make DESTDIR=%{buildroot} install or make DESTDIR=$RPM_BUILD_ROOT install