Re: Old .Po file references old directory, how to start fresh?

2022-08-04 Thread Nick Bowler
On 2022-08-04, Travis Pressler via Discussion list for automake
 wrote:
> I'm learning how to make an autotools project and have created a test
> project to work with. I ran make with a directory `nested` and then deleted
> it and deleted the reference to it in my `Makefile.am`.
>
> Now I'm running ./configure && make and I get the following:
>
> *** No rule to make target 'nested/main.c', needed by 'main.o'. Stop.
>
> How can I run `make` so that it doesn't reference this old nested
> directory?

Sounds like just some stale dependencies left over from a prior version.

Running "make distclean" should delete all the automatically generated
dependency information and allow the package to be rebuilt normally.

Enabling the Automake subdir-objects feature probably would avoid the
specific scenario that led to your stale dependency problem.

Hope that helps,
  Nick



Re: Old .Po file references old directory, how to start fresh?

2022-08-04 Thread Jacob Bachmeyer

Travis Pressler via Discussion list for automake wrote:

Hi,

I'm learning how to make an autotools project and have created a test project 
to work with. I ran make with a directory `nested` and then deleted it and 
deleted the reference to it in my `Makefile.am`.

Now I'm running ./configure && make​ and I get the following:

*** No rule to make target 'nested/main.c', needed by 'main.o'. Stop.​

How can I run `make` so that it doesn't reference this old nested​ directory?

I was curious if I could find where this reference is, so I did a grep -r 
nested .​ I think the only relevant hit is:

./src/.deps/main.Po:main.o nested/main.c /usr/include/stdc-predef.h 
/usr/include/stdio.h \​


Have you rerun automake to regenerate Makefile.in since changing 
Makefile.am?



-- Jacob




Old .Po file references old directory, how to start fresh?

2022-08-04 Thread Travis Pressler via Discussion list for automake
Hi,

I'm learning how to make an autotools project and have created a test project 
to work with. I ran make with a directory `nested` and then deleted it and 
deleted the reference to it in my `Makefile.am`.

Now I'm running ./configure && make​ and I get the following:

*** No rule to make target 'nested/main.c', needed by 'main.o'. Stop.​

How can I run `make` so that it doesn't reference this old nested​ directory?

I was curious if I could find where this reference is, so I did a grep -r 
nested .​ I think the only relevant hit is:

./src/.deps/main.Po:main.o nested/main.c /usr/include/stdc-predef.h 
/usr/include/stdio.h \​

Many Thanks
-Travis