From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson To: passt-dev@passt.top Subject: Re: [PATCH 6/6] Makefile: Spell prefix as PREFIX Date: Wed, 15 Jun 2022 10:42:23 +1000 Message-ID: In-Reply-To: <20220614164505.5775bca0@elisabeth> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4058919262247207917==" --===============4058919262247207917== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Tue, Jun 14, 2022 at 04:45:05PM +0200, Stefano Brivio wrote: > On Tue, 14 Jun 2022 15:12:26 +1000 > David Gibson wrote: > > > Makefile conventions (at least in the GNUish world) tend to control the > > base install directory with the variable $(PREFIX) (all caps). The passt > > Makefile has the same thing but in lower case $(prefix). Capitalize it to > > match conventions. > > I've been wondering about this when I first added it to the Makefile, > and I couldn't really find a rationale for it. From the documentation > of GNU make: > > http://www.gnu.org/software/make/manual/make.html#Directory-Variables > http://www.gnu.org/software/make/manual/make.html#DESTDIR > > prefix is (conventionally) lowercase, DESTDIR is uppercase, so I'd > stick to that. I guess there's just some historic reason behind it. Some > Makefiles of long-standing projects use prefix, some PREFIX. Huh.. interesting. I guess the things I've looked at personally must have tended towards PREFIX. I'd assumed the GNU conventions specified that, but apparently not. Ok, let's drop this one. > By the way, the rest of the series all look good to me (and is very > appreciated!). -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --===============4058919262247207917== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUVCQ0FBZEZpRUVvVUx4V3U0L1dz MGRCK1h0Z3lwWTRnRXdZU0lGQW1LcEt1Z0FDZ2tRZ3lwWTRnRXcKWVNKd1F3LytOUWdBcXZ5dEVF eHVYZVMxNzd1MmIvMjJZSnNZSk1wS1piMVFEU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