[lockdev-devel] [PATCH 21/22] add pkgconfig file

Karel Zak kzak at redhat.com
Fri Feb 26 15:22:54 UTC 2010


On Fri, Feb 26, 2010 at 11:37:21AM +0100, Ludwig Nussel wrote:
> ---
>  Makefile.am |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/Makefile.am b/Makefile.am
> index d229a00..0aee4fe 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -1 +1,15 @@
>  SUBDIRS = src docs
> +
> +pkgconfigdir = $(libdir)/pkgconfig
> +pkgconfig_DATA = lockdev.pc
> +
> +lockdev.pc: lockdev.pc.in Makefile
> +	sed -e 's, at libdir\@,$(libdir),g' \
> +	    -e 's, at prefix\@,$(prefix),g' \
> +	    -e 's, at exec_prefix\@,$(exec_prefix),g' \
> +	    -e 's, at includedir\@,$(includedir),g' \
> +	    -e 's, at VERSION\@,$(VERSION),g' \
> +	    < $< > $@

 What about:

 AC_CONFIG_FILES([
        lockdev.pc
 ])

 in the ./configure.in ? :-)

> +CLEANFILES = lockdev.pc
> +EXTRA_DIST = lockdev.pc.in

    Karel

-- 
 Karel Zak  <kzak at redhat.com>



More information about the lockdev-devel mailing list