quadra-game / quadra

An addictive action puzzle game with single player and multiplayer capabilities (Internet or LAN).
GNU Lesser General Public License v2.1
27 stars 18 forks source link

Add DESTDIR to rules.mk install target to enable package building #98

Closed pphaneuf closed 10 years ago

pphaneuf commented 10 years ago

When building rpm files, the %makeinstall macro will pass a DESTDIR variable to "make" in order to tell where to install the files, so that the rpm builder can pick them up.

The current Makefile (rules.mk) doesn't take the DESTDIR variable in account.

I have attached a patch that solves this.

Thanks.

pphaneuf commented 10 years ago

The rpmbuild I have here uses something like this in its %makeinstall macro, which does work with Quadra:

make prefix=/var/tmp/quadra-root/usr exec_prefix=/var/tmp/quadra-root/usr bindir=/var/tmp/quadra-root/usr/bin sbindir=/var/tmp/quadra-root/usr/sbin sysconfdir=/var/tmp/quadra-root/usr/etc datadir=/var/tmp/quadra-root/usr/share includedir=/var/tmp/quadra-root/usr/include libdir=/var/tmp/quadra-root/usr/lib libexecdir=/var/tmp/quadra-root/usr/libexec localstatedir=/var/tmp/quadra-root/usr/var sharedstatedir=/var/tmp/quadra-root/usr/com mandir=/var/tmp/quadra-root/usr/share/man infodir=/var/tmp/quadra-root/usr/share/info install

Still, it's a simple patch, I'll apply it, as it makes it easier to use by hand, I suppose...

pphaneuf commented 10 years ago

Should be fixed by r742.