Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Feb 2004 06:26:14 +0300
From:      Sergey Matveychuk <sem@ciam.ru>
To:        ports@freebsd.org
Subject:   Makefile: .if inside .for
Message-ID:  <401F14D6.4020201@ciam.ru>

next in thread | raw e-mail | index | archive | help
man make says:
      For loops are expanded before tests, so a fragment such as:

            .for TMACHINE in ${SHARED_ARCHS}
            .if ${TMACHINE} = ${MACHINE}
                 ...
            .endif
            .endfor

      won't work, and should be rewritten the other way around.

But how can I rewrite it if I need to aggregate file names in 
PLIST_FILES with a some condition in a loop?

May be I need to sleep, but I can't to find any other decision.

-- 
Sem.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?401F14D6.4020201>