comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: autotools and ada
Date: Fri, 25 Nov 2005 20:33:41 +0100
Date: 2005-11-25T20:30:13+01:00	[thread overview]
Message-ID: <1132947221.10202.170.camel@sonnenregen> (raw)
In-Reply-To: <43875DB6.8050606@obry.net>

On Fri, 2005-11-25 at 19:53 +0100, Pascal Obry wrote:

> You'll probably agree that it is far better to do:
> 
> 	$ make build test

I do agree and this is where GNU make is the most useful tool.

I always have *small* makefiles with the first target being

all: test doc

And they have a dist: target that asks the version control
system to make an archive  e.g.

$ darcs dist
 or
$ prcs --execute | cpio -oc > ../dist-$(date ...).cpio

BUT, all this can easily be done without running autotools, as
you have mentioned at the end of your post.
GNU make is comparatively powerful as a make tool! 
vpath, $(function ...) etc. come to mind. They are underused.

>  Use the make tools from your Ada vendor
> (gnatmake for example).

It's slightly confusing to call gnatmake a make tool when discussing
the traditional make program, I think. :)

There is a nice separation here. I can, to some extent, use the same
Makefile for producing docs and running some tests, and leave the
Ada parts largely to the language and to the build tools provided by
the Ada toolmakers. That's why I don't see a pressing need for
autotools for Ada programs. (And for Eiffel programs, etc.)

After all they were originally invented to cope with messy,
non-standardised C installations on Unix, on a text macro
replacement Unix toolbox basis. I hope that Ada
installations won't follow the same path. KISS.
See e.g. the origins of GCC PR 23400, which is in the
way of running $ make check when you have built a 4 series GCC.
The failure has some obscure reason originating in, huh!,
fixincludes.






  reply	other threads:[~2005-11-25 19:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-23  8:16 autotools and ada Ottavio Campana
2005-11-23  9:31 ` Matthieu Moy
2005-11-23  8:39   ` Pascal Obry
2005-11-23  9:33     ` Georg Bauhaus
2005-11-23 10:04       ` Ottavio Campana
2005-11-23 10:14     ` Stephen Leake
2005-11-23 10:28       ` Ottavio Campana
2005-11-23 10:37         ` Ottavio Campana
2005-11-23 10:44       ` Jerome Hugues
2005-11-23 11:40         ` Samuel Tardieu
2005-11-23 12:39           ` Jerome Hugues
2005-11-24 11:17         ` Stephen Leake
2005-11-24 12:01           ` Jerome Hugues
2005-11-24 14:23             ` Samuel Tardieu
2005-11-24 13:10           ` Martin Dowie
2005-11-25  5:25 ` Jeffrey R. Carter
2005-11-25  6:28   ` Brian May
2005-11-25 14:31   ` Samuel Tardieu
2005-11-25 18:03     ` Georg Bauhaus
2005-11-25 18:53       ` Pascal Obry
2005-11-25 19:33         ` Georg Bauhaus [this message]
2005-11-25 19:35           ` Pascal Obry
2005-11-25 20:59         ` Björn Persson
2005-11-25 21:43           ` Pascal Obry
2005-11-25 23:21             ` Björn Persson
2005-11-26  6:51               ` Pascal Obry
2005-11-25 16:36   ` Stephen Leake
2005-11-26  1:26     ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox