[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_make debian/rules clean target

On Fri, Sep 13, 2002 at 02:30:55PM +0200, Stefano Zacchiroli wrote:
> > There is no need of all the above:
> > 
> > 	test -f /usr/share/misc/config.sub && \
> >  		cp -f /usr/share/misc/config.sub config.sub
> Wrong, this is a non solution because if /usr/share/misc/config.sub does
> not exists 'test' command will fail and make exits (because make exits
> as soon as a command return non zero).

If you do not want make to exit, do this:

 	-test -f /usr/share/misc/config.sub && \
  		cp -f /usr/share/misc/config.sub config.sub

> > BTW using sh and its conditionals let a Makefile be more portable.
> Which portability problem are there with make? make is available on all
> our architecture and the 'wildcard' feature is a stndard one.

Make conditionals are a GNU make feature: /usr/share/doc/make-doc/make_12.html
(make-doc package). This is the portability i mean.
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: pgpAvBa8stAAd.pgp
Description: PGP signature

Reply to: