From owner-freebsd-hackers Wed Nov 11 20:48:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA24074 for freebsd-hackers-outgoing; Wed, 11 Nov 1998 20:48:27 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from yonge.cs.toronto.edu (yonge.cs.toronto.edu [128.100.1.8]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id UAA24069 for ; Wed, 11 Nov 1998 20:48:26 -0800 (PST) (envelope-from dholland@cs.toronto.edu) Received: from qew.cs.toronto.edu ([128.100.2.15]) by yonge.cs.toronto.edu with SMTP id <86514-8537>; Wed, 11 Nov 1998 23:47:56 -0500 Received: by qew.cs.toronto.edu id <37814-2936>; Wed, 11 Nov 1998 23:47:27 -0500 Subject: Re: bsd make to gnu make conversion, anyone?? From: David Holland To: kline@tao.thought.org (Gary Kline) Date: Wed, 11 Nov 1998 23:47:27 -0500 Cc: hackers@FreeBSD.ORG In-Reply-To: <199811120310.TAA03072@tao.thought.org> from "Gary Kline" at Nov 11, 98 10:10:38 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <98Nov11.234727edt.37814-2936@qew.cs.toronto.edu> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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