automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make dist problems


From: Matí­as Alejandro Torres
Subject: Make dist problems
Date: Tue, 24 Apr 2007 17:09:57 -0300
User-agent: Thunderbird 1.5.0.10 (X11/20070403)

Hi,

I'm building a package using automake and here is the situation:

- Libraries are built in the process, binaries too.
- When I compile the package with `make` it works great. The package is compiled with the detected libraries (glib, gtk, etc, etc) - But when I do a `make dist` the package is built with no libraries, it just uses the command `gcc -g -O2 category.c -o category`. (category.c is part of a library)

configure.in:

[...]
AC_INIT(configure.in)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(contacts, 0.2.0)
AM_MAINTAINER_MODE

AC_PATH_PROG(contactspath, contacts)

dnl Checks for programs.
AC_PROG_CC
AC_DISABLE_STATIC
AM_PROG_LIBTOOL
LIBTOOL="$LIBTOOL --silent"
AC_PROG_INSTALL
[...]
PKG_CHECK_MODULES(PACKAGE, [gtk+-2.0 sqlite3 libnotify libxml-2.0])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)


Makefile.am in the source dir


lib_LTLIBRARIES = libcontacts.la

INCLUDES = \
   -DLIBDIR=\""$(libdir)/contacts"\" \
   -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
   -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
   -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
-DPACKAGE_DIR=\""$(prefix)"\"
AM_CFLAGS = \
    -Wall\
    -g\
    -O2\
    $(PACKAGE_CFLAGS)

[...]

libcontacts_la_CFLAGS = $(PACKAGE_CFLAGS)
libcontacts_la_LIBADD = $(PACKAGE_LIBS)
libcontacts_la_SOURCES = \
   aboutdialog.c\
   aboutdialog.h\
   category.c\
   category.h
   .....
[...]

So the package is not compiled at all when I try make dist.

Why? Why? Why? please god whyyy?

Thanks in advance, Matias.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]