automake
[Top][All Lists]
Advanced

[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:35:27 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922

Hello.

Lucas Brasilino wrote:
[snip]
    Thanks a lot. It really helps. I've got another issue...
which is quite philosophical. At another directory called
'example' I've got a number of XML docs that should be installed.
So I created the following Makefile.am:

exampledir = $(localstatedir)/lib/$(PACKAGE)
example_DATA =     _default.xml \
        http.xml \
        pop.xml \
        smtp.xml \
        telnet.xml \
        cvs.xml \
        ftp.xml \
        ldap.xml \
        ssh.xml

    Is that right using 'DATA' primitive with this type of file?
Should I change 'exampledir' to '$(DESTDIR)$(localstatedir)/lib/$(PACKAGE) ?

Yes, although I think the documentation is shared rather than local state. So perhaps it should be $(sharedstatedir) or $(pkgdatadir) rather than $(localstatedir). See:

  info automake uniform

and:

  info automake data

You won't need to put $(DESTDIR) in exampledir, because automake will handle that for you. It does that, when it generates all the rules.

If you want the files in example_DATA to be distributed, you need to prefix it with "dist_". See:

  info automake data

Bye, Rich =]

--
Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ]

"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]