Hi!
I'm having a problem with automake.
My project has a subdirectory named src/
Makefile.am at top level reads:
TAR = tar
SUBDIRS = src
Makefile.am in src/ reads:
AUTOMAKE_OPTIONS = no-dependencies
bin_PROGRAMS = yawm
yawm_SOURCES = client.c main.c new.c taskbar.c events.c misc.c screen.c \
ring.c yawm.h
...and configure.in at top level reads:
AC_INIT(src/main.c)
AM_INIT_AUTOMAKE(yawm,0.0.1-a5)
AC_PROG_CC
AC_PROG_INSTALL
AC_PATH_XTRA
CFLAGS="$CFLAGS $X_CFLAGS"
LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
AC_OUTPUT([Makefile src/Makefile])
Now, the problem is this:
After running aclocal; autoconf; automake -a all seems to be working fine
except for ONE thing:
running UCB/BSD Make at top level generates the following error:
cc@e316:~/src/yawm/yawm-0.0.1-a5% make clean
*** Error code 1
Stop in /home/cc/src/yawm/yawm-0.0.1-a5.
cc@e316:~/src/yawm/yawm-0.0.1-a5%
GNU Make works fine:
cc@e316:~/src/yawm/yawm-0.0.1-a5% gmake clean
Making clean in .
gmake[1]: Entering directory `/home/cc/src/yawm/yawm-0.0.1-a5'
gmake[1]: Nothing to be done for `clean-am'.
gmake[1]: Leaving directory `/home/cc/src/yawm/yawm-0.0.1-a5'
Making clean in src
gmake[1]: Entering directory `/home/cc/src/yawm/yawm-0.0.1-a5/src'
test -z "yawm" || rm -f yawm
rm -f *.o core *.core
gmake[1]: Leaving directory `/home/cc/src/yawm/yawm-0.0.1-a5/src'
cc@e316:~/src/yawm/yawm-0.0.1-a5%
All other targets work fine with BOTH BSD and GNU Make though and I'd love
make clean to work with BSD make aswell.
Is there a way to solve this? Am I making an error in one of the files? Is GNU
automake supposed to generate Makefiles that are compatible with BSD Make?
Hmm. Please help me?
Thanks in advance,
Yours,
--
//Linus Nilsson <[EMAIL PROTECTED]>
.-``'.
.` .`~ \o_. __________________________
__.-' '.__.Z\...__ ___ ____ _____ ______ _______/surf now ; apocalyse later
^^^^^ ^^^^ ^^^ ^^ ^ ^^ ^^^ ^^^^