Automake

Programming, for all ages and all languages.
Post Reply
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Automake

Post by Solar »

While I think I got Makefiles more or less covered, I'm helpless when it comes to Automake or Autoconf, so I hope someone here has more knowledge than me in that area.

The Problem:

A project based on automake / autoconf doesn't really have a test suite. I added one in a subdirectory ./tests, together with a (static) Makefile.tu. Now, I'd like the test suite to be available through a top-level "make tests" (the target "tests" does not yet exist, I checked).

The problem is that the top-level Makefile is generated by Automake from a Makefile.am, and I have positively no idea how to add a target to that, and would prefer not having to read the whole Automake docs...

I welcome anything, from "do this" to "read that tutorial"... thanks in advance.
Every good solution is obvious once you've found it.
User avatar
xyjamepa
Member
Member
Posts: 397
Joined: Fri Sep 29, 2006 8:59 am

Re: Automake

Post by xyjamepa »

Hi,

Well,try this tutorial
Also wikipedia always do the job.
Take a look at this tutorial
last one.

hope they help.
The man who follows the crowd will usually get no further than the crowd.
The man who walks alone is likely to find himself in places
no one has ever been before.
User avatar
xenos
Member
Member
Posts: 1118
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Automake

Post by xenos »

Maybe this could also be helpful... Automake already has some features for generating test suites.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
Post Reply