Patrick:
>> Providing it was 6:30 when I did this in the train I cut myself some slack ;)
> *shrug* I am getting code/letter blind I guess, I thought i found it,
> but didnt.... maybe you can help me out.
> The only thing I see in Makefile.in , with similar 'if' statements is
> this mentioned below. I don't see the imstall-xmlDATA section for
> this. Tis is exactly why I hacked the Makefile.am and not the
> Makefile.am
Your usage of Makefile.in versus Makefile.am is confusing. I think you
mean to say "The only thing I see in Makefile.am with similar..." and I
think you mean to say "why I hacked the Makefile.in and not the
Makefile.am".
Anyway, just to be clear, you should be working to fix this by
editing the Makefile.am. Note that some aspects of the Makefile.in file
might be generated via the scripts like intltoolize, gettextize,
autoheader, aclocal, etc. that get run before configure. Also, the
Makefile.am may be including stuff from other files via "include"
statements.
So, to fix this properly, it needs to be fixed in the upstream code
and not in the Makefile.in file, which is generated via automake and
friends.
I suspect that the offending area is this:
xml_DATA = $(xam_files) \
$(kbd_files)
If I were to guess, the way xml_DATA is being set-up in Makefile.am
is probably incorrect. Or perhaps these files really shouldn't
be considered "xml_DATA" and should instead some other type should
be used for kbd files.
To fix this you probably need to learn about automake. Fixing bugs
in how Makefile.am files are translated to Makefile.in files are
often hard.
http://sources.redhat.com/automake/automake.html
A hack that modifies Makefile.in is useful for testing and perhaps
getting an understanding of the problem, but is likely not the right
fix.
The following code snippint is for GConf keys setting, and has nothing
to do with installing XML files.
> install-data-local:
> if GCONF_SCHEMAS_INSTALL
> $(mkinstalldirs) $(DESTDIR)$(schemadir)
> GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) gconftool-2
> --makefile
> -install-rule $(schema_DATA)
> endif
> @for l in *; do \
> if [ -f $$l/main.kbd ]; then \
> $(mkinstalldirs) $(DESTDIR)$(datadir)/gok/$$l; \
> for f in $$l/*.kbd; do \
> echo copying $$f to
> $(DESTDIR)$(datadir)/gok/$$l
> ; \
> cp $$f $(DESTDIR)$(datadir)/gok/$$l; \
> done; \
> fi; \
> done
Brian