help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need ways to make Makefiles more foolproof


From: Michael Ludwig
Subject: Re: Need ways to make Makefiles more foolproof
Date: Wed, 22 Feb 2012 00:32:52 +0100
User-agent: Mutt/1.5.20 (2009-12-10)

Bo Johansson schrieb am 20.02.2012 um 16:50 (+0100):
> 
> I am trying to find ways to make Makefiles more foolproof and need
> ideas, advices, and reference to already established methods. (For
> background see http://www.perlmonks.org/?node_id=954865.)

Have you checked whether Module::Build (instead of ExtUtils:MakeMaker)
fulfils your needs?

https://metacpan.org/module/Module::Build

> I want to find portable ways in a Makefile to:
> 
> 1] Find which make program is used
> 2] Give a warning message
> 3] Give an error message and stop the make program
> 4] (If there is a solution to 1] ) Find methods to create more
> portable Makefiles
> 
> Portable means here that the Makefile can be used by many make
> programs. If possible a message should be given if the Makefile is
> incompatible with the used make program.

If it is not for Perl, have you looked at cmake?

Michael



reply via email to

[Prev in Thread] Current Thread [Next in Thread]