The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

AutoCons - Write a Construct file.

SYNOPSIS

use AutoCons; WriteCS( Name => "Foo::Bar", Version => "1.0" );

DESCRIPTION

AutoCons is a cons Construct generator similar to ExtUtils::MakeMaker or Gnu Autoconf, except that cons is far more portable than make. For the developer, this means that your program will build on any system that cons will. For a user, this means that you don't need a "make" program to build your program.

FUNCTIONS

* WriteCS()

Create a Construct with the information you give it. WriteCS involks all of the other subs needed to create a working Construct of Conscript. WriteCS( File => "<FILENAME>", # Optional; defaults to 'Construct' Name => "<NAME>", # Required Version => "<VERSION>", # Required Type =< "<'site' or 'vendor' or 'perl'>", # Optional; defaults to 'site' NoRec => <NO RECURSIVE BUILD>, # Optional PreReqs => [ # Optional. <MOD>, ... ], Add => "<CODE TO APPEND>" # Optional );

* Targ()

Add a target. Required to compile source code. Targ("<TARGET>", "<FILE>", "<DEPS>", "<ARGS>" );

* Dep()

Add a dependency. Required to compile source code. Dep("<TARGET>", "<DEPS>");

* RecBuild()

Scan for and run PL scripts in other directories (run by WriteCS, mainly for internal use.) RecBuild( );

* SanityCheck()

Check sanity of WriteCS options (run by WriteCS, mainly for internal use.) SanityCheck( );

* Vars()

Add variables to Conscript (run by WriteCS, mainly for internal use.) Vars( );

* Targs()

Add targets to Conscript (run by WriteCS, mainly for internal use.) Targs( );

* PLibTargs()

Add perl module targets to Conscript (run by WriteCS, mainly for internal use.) PLibTargs( );

* BinTargs()

Add binary targets to Conscript (run by WriteCS, mainly for internal use.) BinTargs( );

* ScriptTargs()

Add perl script targets to Conscript (run by WriteCS, mainly for internal use.) ScriptTargs( );

* DocTargs()

Add documentation targets to Conscript (run by WriteCS, mainly for internal use.) DocTargs( );

COPYRIGHT

Copyright (c) 1995 Michael Howell. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

AutoCons::HOWTO::C(1) AutoCons::HOWTO::C(1) AutoCons::ConfigH(3)

cons(1) perl(1)