unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Question related to outputs
@ 2017-03-14 15:14 Pjotr Prins
  2017-03-14 15:22 ` Pjotr Prins
  2017-03-15 16:24 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Pjotr Prins @ 2017-03-14 15:14 UTC (permalink / raw)
  To: Ludovic Courtès; +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.
-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-16  9:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-14 15:14 Question related to outputs Pjotr Prins
2017-03-14 15:22 ` Pjotr Prins
2017-03-15 16:24 ` Ludovic Courtès
2017-03-15 20:32   ` Pjotr Prins
2017-03-16  9:02     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).