help-make
[Top][All Lists]
Advanced

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

Re: make failing, tabs are fine, missing separator


From: Russell King
Subject: Re: make failing, tabs are fine, missing separator
Date: Wed, 9 Jan 2008 15:10:25 -0500

Here is what I have.  I just took out only 1 line.

when I do make I still get this error:

make: *** No rule to make target `(cd', needed by `all'.  Stop.
=====================
./Makefile contents:

APP_NAME=lama

all:
    (cd src;$(MAKE))
#; $(MAKE) -C src

clean:
    (cd src;$(MAKE) clean)

release:    clean appfile
    sh ../../support/create_release.sh

appfile:
    (cd src;$(MAKE) ../ebin/$(APP_NAME).app)

docs:
    erl -noshell -run edoc_run application "'$(APP_NAME)'" \
       '"."' '[{def,{vsn,"$(VSN)"}}]' -s init stop

========================
./src/Makefile contents:

include ../vsn.mk

#include ../../../support/include.mk

ERLC_FLAGS  += -I../include

ERL_OBJECTS += $(EBIN_DIR)/lama.app

all: $(ERL_OBJECTS)

clean:
    -rm $(ERL_OBJECTS)

=============================================================
On Jan 9, 2008 11:59 AM, Dave Korn <address@hidden> wrote:
On 09 January 2008 16:16, Russell King wrote:

> I did take out the extra line.  I get an error:
>
> make: *** No rule to make target `(cd', needed by `all'.  Stop.
>
> russ

 That suggests that you've not just deleted the blank line, but also joined
the two lines together, i.e. your makefile used to say

------------------------------------------
all:

       (cd src;$(MAKE))
------------------------------------------

and now it says

------------------------------------------
all:   (cd src;$(MAKE))
------------------------------------------

when what I was trying to suggest is that it should say

------------------------------------------
all:
       (cd src;$(MAKE))
------------------------------------------


   cheers,
     DaveK
--
Can't think of a witty .sigline today....



reply via email to

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