Hi all!
I have a little problem with my small project...every time I use the
"make dist" command I obtain the following output:
[EMAIL PROTECTED]:~/Desktop/DAMA$ make dist
{ test ! -d pegsolitaire-0.1 || { find pegsolitaire-0.1 -type d !
-perm -200 -exec chmod u+w {} ';' && rm -fr pegsolitaire-0.1 ; }; }
mkdir pegsolitaire-0.1
/bin/bash: line 21: test: pegsolitaire-0.1: binary operator expected
cp: target `/README' is not a directory
make: *** [distdir] Error 1
where is the mistake?
this is my configure.ac
------------------------------------------------------------------------------------
AC_PREREQ(2.60)
AC_INIT(PegSolitaire, 0.1 , [EMAIL PROTECTED])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/callback.c])
AC_CONFIG_HEADER([src/config.h])
AC_PROG_CC
PKG_CHECK_MODULES(MYPROG, libgnome-2.0 libgnomeui-2.0 libglade-2.0)
AC_SUBST(MYPROG_CFLAGS)
AC_SUBST(MYPROG_LIBS)
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
AC_C_CONST
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT
---------------------------------
this is my first makefile.am
SUBDIRS = src
----------------------------------
this is the makefile.am in the source directory
----------------------------------
glpegsolitaire_LDFLAGS = \
-export-dynamic
glpegsolitaire_CFLAGS = \
-Wall\
$(MYPROG_CFLAGS)
glpegsolitaire_LDADD = \
$(MYPROG_LIBS)
bin_PROGRAMS = glpegsolitaire
glpegsolitaire_SOURCES = \
drawengine.h\
drawengine.c\
dama.c\
engine.h\
engine.c\
callback.h\
callback.c
---------------------------------------
Many thanks for the help!
Enrico