* [devel] syntax error near unexpected token `then'
@ 2008-12-29 13:30 Vladimir Scherbaev
2008-12-29 13:33 ` Slava Semushin
2008-12-29 13:36 ` Alexey Tourbin
0 siblings, 2 replies; 4+ messages in thread
From: Vladimir Scherbaev @ 2008-12-29 13:30 UTC (permalink / raw)
To: ALT Linux Team development discussions
Добрый день.
Пытаюсь собрать программку. Вот что получаю при выполнении make:
[zemik@zemik-laptop src]$ make
making all in src
/bin/sh: -c: line 1: syntax error near unexpected token `then'
/bin/sh: -c: line 1: ` @if [ ! -x bison -y ]; then \'
make: *** [y.tab.c] Ошибка 2
Вот кусок makefile:
y.tab.c y.tab.h: sg.y sg.h
@if [ "$(YACC)" = "yacc" ]; then \
@if [ ! -x $(YACC) ]; then \
echo " " ; \
echo "No yacc/bison found. Copy prepared files for
y.tab.h and y.tab.c over. " ; \
echo " " ; \
cp y.tab.h.bison y.tab.h ; \
cp y.tab.c.bison y.tab.c ; \
else \
$(YACC) -d sg.y ; \
fi ; \
else \
$(YACC) -d sg.y ; \
fi ;
Что ему не нравиться?
--
With Best Regards,
Vladimir Scherbaev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] syntax error near unexpected token `then'
2008-12-29 13:30 [devel] syntax error near unexpected token `then' Vladimir Scherbaev
@ 2008-12-29 13:33 ` Slava Semushin
2008-12-29 13:36 ` Alexey Tourbin
1 sibling, 0 replies; 4+ messages in thread
From: Slava Semushin @ 2008-12-29 13:33 UTC (permalink / raw)
To: ALT Linux Team development discussions
2008/12/29 Vladimir Scherbaev <vladimir@altlinux>:
> Добрый день.
>
> Пытаюсь собрать программку. Вот что получаю при выполнении make:
> [zemik@zemik-laptop src]$ make
> making all in src
> /bin/sh: -c: line 1: syntax error near unexpected token `then'
> /bin/sh: -c: line 1: ` @if [ ! -x bison -y ]; then \'
> make: *** [y.tab.c] Ошибка 2
>
> Вот кусок makefile:
> y.tab.c y.tab.h: sg.y sg.h
> @if [ "$(YACC)" = "yacc" ]; then \
> @if [ ! -x $(YACC) ]; then \
Делается попытка проверить существует файл или нет. Подразумевается,
что в $(YACC) путь к исполняемому файлу, но там ещё и опция для
программы, которая тоже подставляется.
Короче, $(YACC) у вас раскрылся в "bison -y" а должен в что-нибудь
вроде "/usr/bin/bison"
--
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] syntax error near unexpected token `then'
2008-12-29 13:30 [devel] syntax error near unexpected token `then' Vladimir Scherbaev
2008-12-29 13:33 ` Slava Semushin
@ 2008-12-29 13:36 ` Alexey Tourbin
2008-12-29 13:41 ` Vladimir Scherbaev
1 sibling, 1 reply; 4+ messages in thread
From: Alexey Tourbin @ 2008-12-29 13:36 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 990 bytes --]
On Mon, Dec 29, 2008 at 04:30:09PM +0300, Vladimir Scherbaev wrote:
> Добрый день.
>
> Пытаюсь собрать программку. Вот что получаю при выполнении make:
> [zemik@zemik-laptop src]$ make
> making all in src
> /bin/sh: -c: line 1: syntax error near unexpected token `then'
> /bin/sh: -c: line 1: ` @if [ ! -x bison -y ]; then \'
> make: *** [y.tab.c] Ошибка 2
>
> Вот кусок makefile:
> y.tab.c y.tab.h: sg.y sg.h
> @if [ "$(YACC)" = "yacc" ]; then \
> @if [ ! -x $(YACC) ]; then \
Воторой раз собаку перед if не надо.
> echo " " ; \
> echo "No yacc/bison found. Copy prepared files for
> y.tab.h and y.tab.c over. " ; \
> echo " " ; \
> cp y.tab.h.bison y.tab.h ; \
> cp y.tab.c.bison y.tab.c ; \
> else \
> $(YACC) -d sg.y ; \
> fi ; \
> else \
> $(YACC) -d sg.y ; \
> fi ;
>
> Что ему не нравиться?
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] syntax error near unexpected token `then'
2008-12-29 13:36 ` Alexey Tourbin
@ 2008-12-29 13:41 ` Vladimir Scherbaev
0 siblings, 0 replies; 4+ messages in thread
From: Vladimir Scherbaev @ 2008-12-29 13:41 UTC (permalink / raw)
To: ALT Linux Team development discussions
29 декабря 2008 г. 16:36 пользователь Alexey Tourbin <at@altlinux.ru> написал:
> On Mon, Dec 29, 2008 at 04:30:09PM +0300, Vladimir Scherbaev wrote:
>> Добрый день.
>>
>> Пытаюсь собрать программку. Вот что получаю при выполнении make:
>> [zemik@zemik-laptop src]$ make
>> making all in src
>> /bin/sh: -c: line 1: syntax error near unexpected token `then'
>> /bin/sh: -c: line 1: ` @if [ ! -x bison -y ]; then \'
>> make: *** [y.tab.c] Ошибка 2
>>
>> Вот кусок makefile:
>> y.tab.c y.tab.h: sg.y sg.h
>> @if [ "$(YACC)" = "yacc" ]; then \
>> @if [ ! -x $(YACC) ]; then \
>
> Воторой раз собаку перед if не надо.
>
>> echo " " ; \
>> echo "No yacc/bison found. Copy prepared files for
>> y.tab.h and y.tab.c over. " ; \
>> echo " " ; \
>> cp y.tab.h.bison y.tab.h ; \
>> cp y.tab.c.bison y.tab.c ; \
>> else \
>> $(YACC) -d sg.y ; \
>> fi ; \
>> else \
>> $(YACC) -d sg.y ; \
>> fi ;
>>
>> Что ему не нравиться?
Всем спасибо:)
--
With Best Regards,
Vladimir Scherbaev
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-29 13:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-29 13:30 [devel] syntax error near unexpected token `then' Vladimir Scherbaev
2008-12-29 13:33 ` Slava Semushin
2008-12-29 13:36 ` Alexey Tourbin
2008-12-29 13:41 ` Vladimir Scherbaev
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git