./configure && make && make install

nayana의 이미지

개발한 프로그램을 배포할 목적으로 만들고 있습니다.

Quote:
./configure
make
make install

이런식으로 만들려고 하는데...
test 디렉토리에 memo main incl 디렉토리를 만들고
각각의 디렉토리에는 memo.c main.c incl.c 파일있습니다.
최상위 test디렉토리 에는 Makefile.am 파일을 만들고
내용은 다음과 같습니다.
1 SUBDIRS           = main memo  incl
2 bin_PROGRAMS = nayana
3 diary_SOURCES = main/main.c memo/memo.c incl/incl.c 

그런다음에 최상위 test디렉토리 autoscan 명령어를 수행하고
configure.scan 파일을 configure.ac 변경하였습니다.

configure.ac
      1 #                                               -*- Autoconf -*-
      2 # Process this file with autoconf to produce a configure script.
      3
      4 AC_PREREQ(2.59)
      5 AC_INIT( nayana, 0.0.1, nayana@empal.com)
      6 AM_INIT_AUTOMAKE( nayana, 0.0.1 )
      7 AC_CONFIG_SRCDIR([main/main.c])
      8 AC_CONFIG_HEADER([config.h])
      9
     10 # Checks for programs.
     11 AC_PROG_CC
     12
     13 # Checks for libraries.
     14
     15 # Checks for header files.
     16
     17 # Checks for typedefs, structures, and compiler characteristics.
     18
     19 # Checks for library functions.
     20
     21 AC_CONFIG_FILES([Makefile])
     22 AC_OUTPUT
 

그런다음에 autoheader
=>aclocal
=>autoconf
=>automake --foreign --add-missing --copy
=>./configure
하였습니다.
그런데 Makefile이 안만들어지네요...?
ins878의 이미지

아마다 재귀적 make를 사용하시는 것 같은데요. 상위 디렉토리에 있는 Makefile이 하위에 위치한 Makefie을 재귀적 호출하기 위해서는 AC_PROG_MAKE_SET 것을 추가해야 합니다. AC_PROG_MAKE_SET을 하면, 아마 Makefile이 생길 겁니다.

pynoos의 이미지

AC_CONFIG_FILES에, 만들어질 모든 Makefile을 넣어주셔야합니다.