[Top][All Lists]

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

Re: install-data-local always installs?

From: Stepan Kasal
Subject: Re: install-data-local always installs?
Date: Sat, 22 Jan 2005 17:42:50 +0100
User-agent: Mutt/1.4.1i

  your question is somewhat specific to the Gnome project.  Perhaps you
should find a Gnome developper forum to get better answer.

On Fri, Jan 21, 2005 at 03:35:52PM -0600, Seth Hadley wrote:
> should uninstall-local: be used for uninstalling the gconf,

I don't know gconf, so I cannot help you.

> schemadir = @GCONF_SCHEMA_FILE_DIR@
> schema_DATA = drwright.schemas
> install-data-local:
>         if test -z "$(DESTDIR)" ; then \
>           for p in $(schema_DATA) ; do \
> $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \
>           done \
>         fi
> endif

> These lines seems to be common throughout gconf applications, I have
> tried it in several apps, and it does not seem to work for me.

One crucial thing to make this work is to define the automake conditional.
For example, gnumeric's contains this line:


See the chapter on automake conditionals in the automake manual.

And, of course, your SUBDIRS variables has to be set up right, so that
this directory is processed by make.

Please note that the above code is OK with automake 1.9.4, but not with
automake 1.7.x; for that you'd need to add an else branch:

> ps. the final Makefile does have this listed.

Well, you shouldn't see the code in  The `if' and `endif'
lines should disappear and the inner lines should get prefixed by

> will it be run _before_ /etc/gconf/schemas/drwright.schemas is removed
> (install in app).

I don't know; you need to ask at a Gnome forum.

        Stepan Kasal

reply via email to

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