Discussion:
Using gnulib with a simple Makefile
(too old to reply)
Cufi, Carles
2018-01-15 16:53:48 UTC
Permalink
Raw Message
Hi there,

I was wondering if there's a way of using gnulib when the target project is comprised of a simple Makefile instead of a Makefile.am and configure.ac.

I haven't been able to find any information online about this.

Regards,

Carles
Bruno Haible
2018-01-15 18:06:00 UTC
Permalink
Raw Message
Hi,
Post by Cufi, Carles
I was wondering if there's a way of using gnulib when the target project
is comprised of a simple Makefile instead of a Makefile.am and configure.ac.
A simple Makefile, instead of Makefile.am, is supported: Use gnulib-tool
option --gnu-make.

But a configure.ac is required; there's no way around this.

Bruno
Cufi, Carles
2018-01-15 19:08:39 UTC
Permalink
Raw Message
Hi Bruno,
-----Original Message-----
Sent: 15 January 2018 19:06
Subject: Re: Using gnulib with a simple Makefile
Hi,
Post by Cufi, Carles
I was wondering if there's a way of using gnulib when the target
project is comprised of a simple Makefile instead of a Makefile.am and
configure.ac.
A simple Makefile, instead of Makefile.am, is supported: Use gnulib-tool
option --gnu-make.
But a configure.ac is required; there's no way around this.
Thanks.

Since I am trying to add support for gnulib to an existing open source project, is it possible to create a minimal, barebones configure.ac that essentially is there only for gnulib? Any pointers appreciated.

Regards,

Carles
Bruno Haible
2018-01-15 19:29:58 UTC
Permalink
Raw Message
Hi,
Post by Cufi, Carles
Post by Bruno Haible
But a configure.ac is required; there's no way around this.
Thanks.
Since I am trying to add support for gnulib to an existing open source project,
is it possible to create a minimal, barebones configure.ac that essentially
is there only for gnulib?
You'll better proceed in two steps:

1. Add a minimal configure.ac to your project.
For this, you can use the attached nearly minimal "Hello world" project in C.

2. Invoke gnulib-tool as documented in the manual.

Bruno

Loading...