8
votes

First off I just want to say, I'm a total newb at Autotools.

I have a project with the following structure:

+-src
  +-commands
    Makefile.am
    +-copy
      Makefile.am
      copy.h
      copy.cpp
    +-delete
      Makefile.am
      delete.h
      delete.cpp
  main.cpp
  Makefile.am
Makefile.am

Makefile.am has SUBDIRS=src

src/Makefile.am has SUBDIRS=commands .

src/commands/Makefile.am has SUBDIRS=$(AUTODIRS)

When I run automake in the root, it generates Makefile.in and src/Makefile.in, but not in commands and copy.

What am I doing wrong?

1
Make sure your configure.ac mentions all the Makefiles in AC_CONFIG_FILES.Tom Tromey
Aha. That was it. Make an answer if you want and I'll choose it.Sam Washburn

1 Answers

11
votes

Make sure your configure.ac mentions all the Makefiles in AC_CONFIG_FILES.