[Top][All Lists]

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

concatenating multiple shell command in a Makefile

From: nike
Subject: concatenating multiple shell command in a Makefile
Date: Sat, 22 Mar 2008 09:11:40 -0700 (PDT)
User-agent: G2/1.0

Hi I am trying to use the following code in a Makfile to change into a
directory and to execute Make all after testing the existence of a
file. However, Make does not seem to like the idea and report an
unexpected token.
all :
        @echo "in the main directory"
        @cd dir1  && if [-s toto]; then echo "toto existe";  else echo
toto"; fi; && $(MAKE) all
could someone help me understanding how to execute multiple commands
on the same line? I have tried using backticks to quote the complete
line  or part of it  without success. Thanks for any help.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]