The following makefile causes a syntax error, but works correctly when the
first line is commented out.

$ cat Makefile
SHELL = "/bin/sh"
all:
        if :; then \
                :; \
        fi
$ make
if :; then \
                :; \
        fi
/bin/sh: -c: line 1: syntax error: unexpected end of file
/bin/sh: line 1:        :; \: command not found
/bin/sh: -c: line 2: syntax error near unexpected token `fi'
/bin/sh: -c: line 2: `fi'
make: *** [all] Error 2

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to