[Top][All Lists]

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

Re: Creating some directory at install time.

From: Richard Dawe
Subject: Re: Creating some directory at install time.
Date: Fri, 05 Nov 2004 16:13:23 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922


Lucas Brasilino wrote:
    I'm wondering how can I create '$(localstatedir)/lib/$(PACKAGE)'
directory at install time. Am I right in redefining "install-confDATA"
target at Something like this:

You could use an install-*-local target in your See the following info page:

  info automake extending

install-confDATA: $(conf_DATA)
    $(mkinstalldirs) $(DESTDIR)$(confdir)
    $(mkinstalldirs) $(localstatedir)/lib/$(PACKAGE) # added by me

This would need to be:

  $(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/$(PACKAGE)

so that DESTDIR installs are supported. These are where the package installed under a different prefix than it was configured. E.g.: it may be installed like this:

  make install DESTDIR=/some/path

See the section "Staged Installs" under:

  info automake install

    @list='$(conf_DATA)'; for p in $$list; do \
      if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
      f="`echo $$p | sed -e 's|^.*/||'`"; \
      echo " $(confDATA_INSTALL) $$d$$p $(DESTDIR)$(confdir)/$$f"; \
      $(confDATA_INSTALL) $$d$$p $(DESTDIR)$(confdir)/$$f; \

Hope that helps, regards,

Richard Dawe [ ]

"You can't evaluate a man by logic alone."
  -- McCoy, "I, Mudd", Star Trek

reply via email to

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