Questions tagged [automake]

Automake is a tool provided by GNU for the purpose of automating the generation of portable, configurable Makefiles.

Automake is a tool for automatically generating Makefile.ins from files called Makefile.am. Each Makefile.am is basically a series of make variable definitions, with rules being thrown in occasionally. The generated Makefile.ins are compliant with the GNU Makefile standards.

The GNU Makefile Standards Document (see Makefile Conventions) is long, complicated, and subject to change. The goal of Automake is to remove the burden of Makefile maintenance from the back of the individual GNU maintainer (and put it on the back of the Automake maintainers).

The typical Automake input file is simply a series of variable definitions. Each such file is processed to create a Makefile.in. There should generally be one Makefile.am per directory of a project.

Automake does constrain a project in certain ways; for instance, it assumes that the project uses Autoconf (see Introduction), and enforces certain restrictions on the configure.ac contents.

For more details, take a look into automake manual

1092 questions
0
votes
3 answers

Appending directory to pkginclude_header

Is there anyway I can modify the path for pkginclude_ without actually changing the structure of my project? Heres the directory stucture I have. My_Project > include > banana.h apple.h …
bgura
  • 860
  • 15
  • 33
0
votes
1 answer

Best way to add generated files to distribution?

I have a quite complex (C++) project using autoconf / automake, which includes some "generated" files (foo.yy -> foo.cc). Actual builds are done using a "control script" (Gentoo .ebuild for those familiar with the concept), on various…
DevSolar
  • 67,862
  • 21
  • 134
  • 209
0
votes
1 answer

autoconf substitute path in script

I have a project where there are several helper scripts that call the main executable with different command-line options. Right now, the scripts assume the executable is in the same directory, so the calls to the executable in the script look like…
Nick
  • 499
  • 5
  • 13
0
votes
2 answers

Automake: different install to target and to toolchain

Maybe I am asking a silly question, but is there any way I can tell automake to put my project include files when I do a "make dist" but not when I do a "make install"? Maybe I am not acting the right way, so to make it clearer I will tell what I…
j4x
  • 3,595
  • 3
  • 33
  • 64
0
votes
1 answer

My lib_LTLIBRARIES library links, but check_LTLIBRARIES one does not?

I have a new c++ project built with autoconf, automake and libtool. Functionality is divided up into support libraries and user binaries. There is also a set of unittests binaries which link against these libraries, are built and run at make check…
phs
  • 10,687
  • 4
  • 58
  • 84
0
votes
1 answer

Ubuntu issue setting up autoconf and automake

I am trying to install the autoconf and automake tools on the latest Ubuntu but I am having problems finding anything online that will help me do this, I've tried to do apt-get update but I am having no luck. I need these tools in order to install…
Ferdinand
  • 241
  • 3
  • 12
0
votes
2 answers

How do I include mysql.h and my_global.h into the Makefile.am?

I'm trying to create a C program that can communicate with MySQL database via these two header files: mysql.h my_global.h MySQL comes with mysql_config script that you can execute to find out where the include files and library files reside in the…
chutsu
  • 13,612
  • 19
  • 65
  • 86
0
votes
1 answer

Make dist doesn't include makefile.in files from subdirectories

I have a Makefile.am file in my source folder and some makefile.in in some subdiretories. Everything works fine but I've noticed that when I do a make dist the tarball doesn't include the makefile.in in the subdirectories. Also because of this, make…
Gabi
  • 13
  • 2
0
votes
2 answers

What directory should I use for "error: 'extra_PROGRAMS' is used but 'extradir' is undefined"?

I have a autoconf/automake system that has a stand-alone target called stand. I don't want stand to be normally built, so I have this in my Makefile.am: bin_PROGRAMS = grace extra_PROGRAMS = stand ... stand_SOURCES = stand.cpp barry.cpp ... This…
vy32
  • 28,461
  • 37
  • 122
  • 246
0
votes
0 answers

automake stops on phantom C version of C++ file

I'm trying to add parts of libemf to Inkscape. In the subdirectory "libEMF" are found libemf.cpp, libemf.h, and a handful of other include files (all *.h). Added lines to makefile.am and makefile.in analogous to those for another similar directory…
mathog
  • 345
  • 3
  • 11
0
votes
1 answer

library found during configure, but not make

I'm trying to bundle up a small C++ program using automake and autotools. In my current setup, a required library is installed in a location that the configure script is able to find, but is not found when invoking g++ from make. I can fix this by…
ChrisB
  • 4,628
  • 7
  • 29
  • 41
0
votes
3 answers

what does $(brickval_VALASOURCES:.vala=.h) do?

I found the following line in an automake script brickval_SOURCES = \ $(brickval_VALASOURCES:.vala=.c) \ $(brickval_VALASOURCES:.vala=.h) the whole thing is here I actually have a very good guess as to what it does, expand…
user615457
  • 817
  • 1
  • 7
  • 13
0
votes
3 answers

Building c++ project in Ubuntu Linux with Makefile.am/Makefile.in

I am new in Ubuntu/Linux and I've been working with java using the NetBeans IDE, so I don't have much experience with building c++ projects. But now I have to provide a proof of concept and I need to connect a C++ client with my ActiveMQ server. I…
-1
votes
1 answer

How avoid recompile different targets in different paths using autotools?

I already could compile different targets or flavours(debug release), but the problem is when I make: make debug or make release this generate objects and the library in the respective folder folder. This is the Makefile.am: AM_CXXFLAGS =…
-1
votes
2 answers

Create directory structure in /var/lib using autotools and automake

I'm using autotools on a C project that, after installation, needs a particular directory structure in /var/lib as follows: /var/lib/my-project/ data/ configurations/ local/ extra/ inputs/ I'm currently using the…
ibrahim mahrir
  • 31,174
  • 5
  • 48
  • 73
1 2 3
72
73