[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make dist: sources missing
From: |
Christian Rössel |
Subject: |
make dist: sources missing |
Date: |
Fri, 17 Apr 2009 18:35:54 +0200 |
User-agent: |
Thunderbird 1.5.0.14 (X11/20060911) |
Hi,
in the following project "make" succeeds but in the result of "make
dist" the source test/src/bar.c is missing. "make distcheck" fails.
Assume following directory layout:
test/
test/cfg/
test/cfg/Makefile.am
test/cfg/configure.ac
test/cfg/src/
test/cfg/src/foo.c
test/src/
test/src/bar.c
I'm doing a VPATH build.
"make distcheck" fails with the message:
ERROR: files left in build directory after distclean:
./src/bar.c
The contents of test-1.0.tar.gz is:
test-1.0/
test-1.0/config/
test-1.0/config/compile
test-1.0/config/depcomp
test-1.0/config/install-sh
test-1.0/config/missing
test-1.0/src/
test-1.0/src/foo.c
test-1.0/configure.ac
test-1.0/aclocal.m4
test-1.0/Makefile.am
test-1.0/Makefile.in
test-1.0/configure
bar.c is not in $(top_srcdir) nor in a subdirectory. Is that the
problem? I haven't found anything in the docs. The docs state
"all source files are automatically included in a distribution"
(http://www.gnu.org/software/automake/manual/automake.html#Dist)
My Makefile.am and configure.ac are as follows:
Makefile.am:
bin_PROGRAMS =
bin_PROGRAMS += bar
bar_SOURCES = $(top_srcdir)/../src/bar.c
bin_PROGRAMS += foo
foo_SOURCES = $(top_srcdir)/src/foo.c
configure.ac:
AC_INIT([test],[1.0])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([foreign -Wall])
AC_PROG_CC
AM_PROG_CC_C_O
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
Am I doing something wrong?
Cheers,
Christian
- make dist: sources missing,
Christian Rössel <=