useing glib_genmarshal from Makefile.am



Hi, 
I'm trying to use glib_genmarshal to automaticly create my marshaler
functions form the make file but it is not working :(

I tried to follow what it said in the porting doc and this is what I
have in my Makefile.am 


## Process this file with automake to produce Makefile.in
EXTRA_DIST = \
        default.gchordDb.xml\
        GNOME_Chord_Renderer.oaf \
        gchordMarshal.list

dbFiledir = $(datadir)/$(PACKAGE)
dbFile_DATA = default.gchordDb.xml

oafFiledir = $(datadir)/oaf
oafFile_DATA = GNOME_Chord_Renderer.oaf

GLIB_GENMARSHAL = $(shell pkg-config --variable=glib_genmarshal
glib-2.0)

gchordMarshal.h: gchordMarshal.list
        ($(GLIB_GENMARSHAL) --prefix=gchordMarshal gchordMarshal.list
--header > gchordMarshal.tmp \
        && mv gchordMarshal.tmp gchordMarshal.h ) \
        || ( rm -f gchord-marshal.tmp && exit 1) 
gchordMarshal.c: gchordMarshal.h
        ( $(GLIB_GENMARSHAL) --prefix=gchordMarshal gchordMarshal.list
--body > gchordMarshal.tmp \
        && mv gchordMarshal.tmp gchordMarshal.c ) \
        || ( rm -f gchordMarshal.tmp && exit 1 )
$(gchord_OBJECTS): gchordMarshal.h

AM_CPPFLAGS = \
        -DDATADIR="\"$(datadir)\"" \
        -DPREFIX="\"$(prefix)\"" \
        -DSYSCONFDIR="\"$(sysconfdir)\"" \
        -DLIBDIR="\"$(libdir)\"" \
        -DPACKAGE_DATA_DIR="\"$(datadir)/$(PACKAGE)\"" \
        -I$(top_srcdir)/intl \
        $(GNOME_CFLAGS) 

bin_PROGRAMS = gchord gchordBonoboTester GNOME_Chord_Renderer

COMMON_SOURCES = \
        gchordMarshal.c gchordMarshal.h \
<snip/>


gchord_SOURCES = \
        main.c \
        $(COMMON_SOURCES)

gchord_LDADD = $(GNOME_LIBS) 

gchordBonoboTester_SOURCES = \
        bonoboTester.c \
        bonoboTester_support.c bonoboTester_support.h \
        bonoboTester_interface.c bonoboTester_interface.h \
        bonoboTester_callbacks.c bonoboTester_callbacks.h 

gchordBonoboTester_LDADD = $(GNOME_LIBS) 

GNOME_Chord_Renderer_SOURCES = \
        $(COMMON_SOURCES) \
        bonoboChordRenderer_Factory.c

GNOME_Chord_Renderer_LDADD = $(GNOME_LIBS) 


All I get when compiling is

cd /home/rob/projects/gnome-chord/gchord-gnome2/src/
make -k 
gcc -DHAVE_CONFIG_H -I. -I. -I..  -DDATADIR="\"/usr/local/share\""
        -DPREFIX="\"/usr/local\""       -DSYSCONFDIR="\"/usr/local/etc\""
        -DLIBDIR="\"/usr/local/lib\""
        -DPACKAGE_DATA_DIR="\"/usr/local/share/gnome-chord\""   -I../intl
        -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/gtk-2.0 -I/usr/include/libart-2.0
-I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0
-I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gconf/2
-I/usr/include/orbit-2.0 -I/usr/include/linc-1.0      -g -O2 -c
gchordMarshal.c
gcc: gchordMarshal.c: No such file or directory
gcc: No input files

It seems that it dosen't even attempt to create the files before
compileing them.

Dose anyone know what I'm doing wrong

      
thanks 

-- 

rob




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