On Fri, Sep 13, 2002 at 12:34:05PM +0200, Stefano Zacchiroli wrote: > On Thu, Sep 12, 2002 at 06:11:27PM -0500, Adam Heath wrote: > # using bash conditionals > > if ! [ -z "$(wildcard /usr/share/misc/config.sub)" ]; then \ > cp -f /usr/share/misc/config.sub config.sub \ > fi There is no need of all the above: test -f /usr/share/misc/config.sub && \ cp -f /usr/share/misc/config.sub config.sub But i suppose Adam refered to this: > # using make conditionals > > ifneq ($(wildcard /usr/share/misc/config.sub),) > cp -f /usr/share/misc/config.sub config.sub > endif BTW using sh and its conditionals let a Makefile be more portable. ciao, -- Luca - De Whiskey's - De Vitis | Elegant or ugly code as well aliases: Luca ^De [A-Z][A-Za-z\-]*[iy]'\?s$ | as fine or rude sentences have Luca, a wannabe ``Good guy''. | something in common: they local LANG="it_IT@euro" | don't depend on the language.
Attachment:
pgphHEW_p5guY.pgp
Description: PGP signature