Rechercher une page de manuel
Panotools::Makefile::Variable.3pm
Langue: en
Version: 2009-12-04 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
Panotools::Makefile::Variable - Assemble Makefile Variable definitionsSYNOPSIS
Simple interface for generating Makefile syntaxDESCRIPTION
Writing Makefiles directly from perl scripts with print and ``\t'' etc... is prone to error, this library provides a simple perl interface for assembling Makefiles.USAGE
$var = new Panotools::Makefile::Variable;
..or define the 'variable name' at the same time:
$var = new Panotools::Makefile::Variable ('USERS');
..or define the name and values at the same time:
$var = new Panotools::Makefile::Variable ('USERS', 'Andy Pandy');
Set or query the name:
$var->Name ('USERS'); $text = $var->Name;
$var->Values ('James Brine', 'George Loveless'); $var->Values ('Thomas Standfield');
Construct a text fragment that defines this variable suitable for use in a Makefile like so:
$text = $var->Assemble;
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre