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