Skip site navigation (1)Skip section navigation (2)
Date:      	Wed, 11 Nov 1998 23:47:27 -0500
From:      David Holland <dholland@cs.toronto.edu>
To:        kline@tao.thought.org (Gary Kline)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: bsd make to gnu make conversion, anyone??
Message-ID:  <98Nov11.234727edt.37814-2936@qew.cs.toronto.edu>
In-Reply-To: <199811120310.TAA03072@tao.thought.org> from "Gary Kline" at Nov 11, 98 10:10:38 pm

next in thread | previous in thread | raw e-mail | index | archive | help
 >    Are there any makefile senior Wizards out there who can clue me
 >    in on the translation of this pmake 

gmake doesn't have an equivalent for .for, so you're stuck with making
a mess.

 > 
 > LANGS=  en_US.ISO_8859-1 fr_FR.ISO_8859-1 de_DE.ISO_8859-1
 > FILES=  ${LANGS:S/$/.mv.cat/}
 > CLEANFILES+=    ${FILES}
 > 
 > .
 > .
 > .
 > 
 > for lang in ${LANGS}
 > ${lang}.mv.cat: ${.CURDIR}/nls/${lang}/mv.msg
 >         gencat -new ${.TARGET} ${.ALLSRC}
 > .endfor

This you can probably do with

%.mv.cat: ${.CURDIR}/nls/%/mv.msg
	gencat -new $@ $^

(for some suitable replacement for ${.CURDIR})

 > beforeinstall:
 > .for lang in ${LANGS}
 >         ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
 >                 ${lang}.mv.cat ${DESTDIR}${NLSDIR}/${lang}/mv.cat
 > .endfor

try

${patsubst %, install-%, ${LANGS}}: install-%:
	${INSTALL} -c -o root -m 644 ${patsubst install-%, %.mv.cat, $@} \
		${DESTDIR}${NLSDIR}/${patsubst install-%, %, $@}/mv.cat

beforeinstall: ${patsubst %, install-%, ${LANGS}}


but that might not work and in any event it's pretty gross.

You might be better off compiling bsd make on whatever box you're
using. 

-- 
   - David A. Holland             | (please continue to send non-list mail to
     dholland@cs.utoronto.ca      | dholland@hcs.harvard.edu. yes, I moved.)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Nov11.234727edt.37814-2936>