automake
[Top][All Lists]
Advanced

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

Re: Setup for a project with autotools so resulting executables can see


From: Simon Richter
Subject: Re: Setup for a project with autotools so resulting executables can see required binary files?
Date: Sat, 14 Mar 2015 20:36:56 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0

Hi Jamil,

On 14.03.2015 17:10, Jamil Egdemir wrote:

>     # make install

Assume that most users only have the files installed that "make install"
copied. Thus, you need to install the bitmap to an appropriate
directory, e.g. pkgdatadir:

pkgdatadir = $(datadir)/$(PACKAGE)

pkgdata_DATA = stargate.bmp

Your program should use the full path to refer to this file. A common
way to do that is to create a preprocessor macro containing the path:

DEFINES = -Dpkgdatadir=\"$(pkgdatadir)\"

This cannot be moved to config.h, because these variables are designed
to be overridden in the Makefile.

In addition, your package should handle the missing file gracefully.

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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