automake
[Top][All Lists]
Advanced

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

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c


From: Bob Proulx
Subject: Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c
Date: Mon, 12 Sep 2005 10:56:16 -0600
User-agent: Mutt/1.5.9i

Harald Dunkel wrote:
> Question about make depend:
> 
> If I set
> 
>       SRCDIR = ../src
>       noinst_PROGRAMS = hello
>       hello_SOURCES = ${SRCDIR}/hello.c

Shouldn't you be using normal VPATH?  That is, you are setting
hello_SOURCES = ../src/hello.c.  But I don't think you want to do
that.

What are you trying to accomplish there?  Everything else I will say
here is speculative and contingent upon this.

> in my Makefile.am, then make complains
> 
> Makefile:242: ../src/.deps/hello.Po: No such file or directory
> make[1]: *** No rule to make target `../src/.deps/hello.Po'.  Stop.
> 
> No indication about what went wrong. Even worse, config.status
> has created a weird directory '$(SRCDIR)'.

This is related to the use of ${SRCDIR} in your sources list.

> Would it be possible to generate a better error message here?
> 
> Or is there some option to let make generate the *.Po files
> including their subdirectories?

Try this in the source directory's Makefile.am file:

  noinst_PROGRAMS = hello
  hello_SOURCES = hello.c

That should work.

Bob




reply via email to

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