From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23072 invoked by alias); 28 Jan 2002 11:41:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 22992 invoked from network); 28 Jan 2002 11:41:40 -0000 Received: from unknown (HELO tele-post-20.mail.demon.net) (194.217.242.20) by sources.redhat.com with SMTP; 28 Jan 2002 11:41:40 -0000 Received: from mailgate.softwire.co.uk ([62.49.203.138] helo=polarbear) by tele-post-20.mail.demon.net with esmtp (Exim 2.12 #2) id 16VAAN-000ME3-0K; Mon, 28 Jan 2002 11:41:39 +0000 From: "Rupert Wood" To: Cc: Subject: RE: Problems with make Date: Mon, 28 Jan 2002 03:41:00 -0000 Message-ID: <616BE6A276E3714788D2AC35C40CD18D03AA07@whale.softwire.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <616BE6A276E3714788D2AC35C40CD18D393F88@whale.softwire.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-SW-Source: 2002-01/txt/msg00263.txt.bz2 Kabir Patel wrote: > The makefile has the following : > > ex2: ex1.c > gcc ex1.c -o ex2 > > and nothing else. > When I run >>make makefile > I always get the same message, namely: > > make: Nothing to be done for `makefile'. You need to tell make what you'd like it to build. If you don't specify anything then it assumes a target 'all' which doesn't exist in your makefile. You either need to: make ex2 or add an 'all' target to the makefile which references ex2, e.g. ex2: ex1.c gcc ex1.c -o ex2 all: ex2 You may wish to investigate the GNU automake project which simplifies generation of complex makefiles. Rup.