From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Question related to outputs Date: Tue, 14 Mar 2017 15:14:02 +0000 Message-ID: <20170314151402.GA15269@mail.thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnoCu-0002vC-AA for guix-devel@gnu.org; Tue, 14 Mar 2017 11:17:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnoCq-0000Lz-Bc for guix-devel@gnu.org; Tue, 14 Mar 2017 11:17:52 -0400 Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel In a package I have targets for out and debug. Now I want to tell the make file to build different targets make -f Makefile.guix build-with-checks make -f Makefile.guix build-without-checks The latter would be the debug with built in bounds checking etc. After an hour of searching I don't find any example. Packages like git have multiple outputs, e.g. git:send-email but I it simply expands paths. Is there a way to test for these targets? (if build-without-checks (do this) (do that)) In gnu/packages/python.scm:L268 (let ((out (assoc-ref outputs "out")) (tk (assoc-ref outputs "tk"))) (when tk (match (find-files out "tkinter.*\\.so") ... looks faulty to me as tk always expands to an outputs path. Pj. --