The project is about a root directory that contains a src directory. I created two makefiles, one at the top directory and the other at the src directory. Here is the makefile of the src directory:

```
## Process this file with automake to produce Makefile.in

## Created by Netbeans

AM_CPPFLAGS = \
   -DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
   -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
   -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\"

bin_PROGRAMS = scratchautotool

program_INCLUDE_DIRS := /usr/bin/PR__bin

program_LIBRARY_DIRS := /usr/lib/PR__lib

CFLAGS += $(foreach includedir,$(program_INCLUDE_DIRS),-I$(includedir))

AM_LDFLAGS += $(foreach librarydir,$(program_LIBRARY_DIRS),-L$(librarydir))

scratchautotool_SOURCES = \
     main.c \
     Task.c \
     SeedVP.c

depend :
    makedepend --$(CFLAGS) --$(scratchautotool_SOURCES)

```

The makefile of the root directory is shown below:

```
## Process this file with automake to produce Makefile.in
## Created by Netbeans

   SUBDIRS = src

   scratchautotooldocdir = ${prefix}/doc/scratchautotool
   scratchautotooldoc_DATA = \
          README\
          COPYING\
          AUTHORS\
          ChangeLog\
          INSTALL\
          NEWS

    INTLTOOL_FILES = intltool-extract.in \
      intltool-merge.in \
      intltool-update.in

    EXTRA_DIST = $(scratchautotooldoc_DATA) \
          $(INTLTOOL_FILES)

    DISTCLEANFILES = intltool-extract \
          intltool-merge \
          intltool-update \
         po/.intltool-merge-cache

   # Remove doc directory on uninstall
   uninstall-local:
   -rm -r $(scratchautotooldocdir)

```

but while I was invoking `make` from the terminal it gave me the following error:

```
   Making all in src
   make[2]: Entering directory `../src'
   make[2]: *** No rule to make target `all'.  Stop.
   make[2]: Leaving directory `../src'

```