Re: bsd make to gnu make conversion, anyone??

[ Available lists | Index of freebsd-hackers | Month of Nov 1998 | Week of 11 Nov 1998 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
David Holland <dholland@cs.toronto.edu>
Date
11 Nov 1998 20:48:27
Subject
Re: bsd make to gnu make conversion, anyone??
Message-ID
98Nov11.234727edt.37814-2936@qew.cs.toronto.edu

Referenced by

[ Hide this part ]
 >    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


Elapsed time: 0.213 seconds