> 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