bug in Makefile?

Bernhard Reiter bernhard at intevation.de
Mon Mar 11 19:21:00 CET 2002


On Mon, Mar 11, 2002 at 01:12:39PM +0100, Carleos Artime Fi wrote:
> Hi. In statist-1.0.1, tests/Makefile, this line appears:
> 
> 	test -z "$(CLEANFILES)" || rm $(CLEANFILES)
> 
> which, in my Debian 2.2r5 produces an error, because "test" returns 1 if
> true and 0 if false, and "bash" executes the command after || if
> success (0) and does not if failed (not 0).

The rm will be executed when the "$(CLEANFILES)" is not empty.
This seem to be correct to me.

In my bash I can try the following:

   test -z hi || echo hi
hi
   test -z || echo ho


This is because test -z returns 0 if the string is empty.
Hmm no idea why this would produce an error.

> On the other hand, I would like to know if there has been any attempt to
> build a Debian package of "statist" (a .deb file). Anybody knows?

I am not aware of debian packaging attempts.
It would be appreciated, though.  :)

	Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 248 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/statist-list/attachments/20020311/1ffbd5ed/attachment.bin


More information about the Statist-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)