From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 1f487552; for ; Fri, 16 Jan 2015 20:31:02 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (envelope-from ) id 1YCIE8-0001qY-Ou; Sat, 17 Jan 2015 02:31:01 +0100 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1YCIE8-0004k2-Ix; Sat, 17 Jan 2015 02:31:00 +0100 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.80) (envelope-from ) id 1YCIE8-0001OI-Ea; Sat, 17 Jan 2015 02:31:00 +0100 Received: from schwarze by usta.de with local (Exim 4.77) (envelope-from ) id 1YCIE8-0003Xv-Do; Sat, 17 Jan 2015 02:31:00 +0100 Date: Sat, 17 Jan 2015 02:31:00 +0100 From: Ingo Schwarze To: Thomas Klausner Cc: tech@mdocml.bsd.lv, Alexis Subject: Re: Allow configure variables to be set from environment Message-ID: <20150117013100.GI9772@iris.usta.de> References: <20150116215840.GF740@kei.fritz.box> <20150116233204.GA3640@danbala.tuwien.ac.at> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150116233204.GA3640@danbala.tuwien.ac.at> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Thomas, Thomas Klausner wrote on Sat, Jan 17, 2015 at 12:32:04AM +0100: > On Fri, Jan 16, 2015 at 10:58:40PM +0100, Alexis wrote: >> If there is another way to achieve this please let me know. > Just set them on the 'make' command line, i.e. > make BINDIR=${BINDIR} PREFIX=${PREFIX} ... That is fragile at best. With respect to *DIR, that might work for now, because ./configure doesn't use the *DIR variables for anything but to write them into Makefile.local. But that is an accident, in principle, ./configure might use them for something else, too, so putting them into ./configure.local is certainly more robust. With respect to PREFIX, your advice doesn't even work. Try make -n PREFIX=FOO install and it says install -m 0555 mandoc demandoc /usr/local/bin Oops. That's because the main Makefile does not use PREFIX. It relies on ./configure to assemble *DIR from PREFIX. Yours, Ingo -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv