wml::mod::MakeMaker(3) | EN Tools | wml::mod::MakeMaker(3) |
wml::mod::MakeMaker - A Makefile generator
#!wml -o Makefile #use wml::mod::MakeMaker <write-makefile [attributes]>
This include file provides an easy way to write a Makefile to distribute your own WML modules. It is inspired by the "ExtUtils::MakeMaker" Perl module.
To build the Makefile, all targets are put in separate buffers during pass 3, and those buffers are diverted by pass 5. You can override this defaukt target by redefining buffer contents. Buffer names are explicit:
MK_ALL MK_INSTALL MK_CLEAN MK_DISTCLEAN MK_CONFIG MK_RELEASE
The MK_USER is empty and devoted to this task.
The first three attributes are mandatory.
modules="math/log.tmpl math/exp.tmpl"
tells that after compilation, there are two modules which are "math/log.tmpl" and "math/exp.tmpl". This modules will be installed to "LibDir/include/math/log.tmpl" and "LibDir/include/math/exp.tmpl".
These modules will then be called in a WML file by
#use tmpl::math::log #use tmpl::math::exp
Source files for these modules are obtained by replacing the suffix by .src.
<write-makefile package="log" version="3.14" modules="math/log.tmpl" source-ext="exp" >
This will build the tmpl::math::log include module from the math/log.exp source file. This source file will also produce the tmpl::math::log(3) manpage.
Please do _not_ use a ".wml" suffix for your modules, they should be reserved for official WML modules shipped with WML. You may instead put your initials or anything else.
Denis Barbier barbier@engelschall.com
Internal: P1, P2, P3, P5 External: --
2020-11-29 | EN Tools |