[gtkada] Patch: Make DESTDIR orthogonal to prjdir.

Björn Persson bjorn at xn--rombobjrn-67a.se
Thu Jul 26 20:13:16 CEST 2012


This patch corrects the usage of DESTDIR in projects/Makefile. I know it's 
tempting to add DESTDIR in one place instead of several, but DESTDIR should 
always be orthogonal to other Make variables. When packagers need to change 
the location of project files (to /usr/share/gpr for example) and also install 
to a staging directory (/tmp/stage, say), they expect to be able to pass 
"prjdir=/usr/share/gpr DESTDIR=/tmp/stage" to Make. It shouldn't be necessary 
to write "prjdir=/tmp/stage/usr/share/gpr DESTDIR=/tmp/stage".

Changelog message:
* projects/Makefile (DESTDIR): Made DESTDIR orthogonal to prjdir.

Björn


-------------- next part --------------
A non-text attachment was scrubbed...
Name: GtkAda-trunk-DESTDIR_correction.patch
Type: text/x-patch
Size: 1208 bytes
Desc: not available
URL: </pipermail/gtkada/attachments/20120726/b28761cc/attachment.bin>


More information about the gtkada mailing list