diff options
author | Raphael Manfredi <Raphael_Manfredi@pobox.com> | 2018-06-05 14:28:56 +0200 |
---|---|---|
committer | Raphael Manfredi <Raphael_Manfredi@pobox.com> | 2018-06-05 15:03:43 +0200 |
commit | 7c4c3dd291c741e2a42c78efd77ffbd3a1c9c1c1 (patch) | |
tree | 773fe4188bb797c492f9dbb389cf028fd0b2f787 /mcon/U | |
parent | cf4ee93a463709e3d83d485c316d8db28e162f00 (diff) |
Added Specific.U as a hook for project-specific code.
After generating config.sh, this is a place where optional generation
can happen, before going on with the .SH file extractions and
dependency computations.
Typically, this can be used to generate a revision.h file.
Diffstat (limited to 'mcon/U')
-rw-r--r-- | mcon/U/Finish.U | 2 | ||||
-rw-r--r-- | mcon/U/Specific.U | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/mcon/U/Finish.U b/mcon/U/Finish.U index cf5a364..51039c4 100644 --- a/mcon/U/Finish.U +++ b/mcon/U/Finish.U @@ -35,7 +35,7 @@ ?X: SH files, which among other things produce config.h and (usually) Makefile. ?X: It offers to do a make depend if the Makefile contains that target. ?X: -?MAKE:Finish: Chk_MANI Extract Myread Oldsym Magic_h cat rm contains \ +?MAKE:Finish: Chk_MANI Extract Specific Myread Oldsym Magic_h cat rm contains \ test package make ?MAKE: -pick add $@ %< ?F:!config.sh diff --git a/mcon/U/Specific.U b/mcon/U/Specific.U new file mode 100644 index 0000000..feb189b --- /dev/null +++ b/mcon/U/Specific.U @@ -0,0 +1,26 @@ +?RCS: +?RCS: Copyright (c) 2018, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic License, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic License; a copy of which may be found at the root +?RCS: of the source tree for dist 4.0. +?RCS: +?X: +?X: This unit is intended to be a project-specific hook. +?X: By default, it is therefore empty, meant to be copied to your private +?X: unit directory (U) and seasoned to taste. +?X: +?X: If you need specific code generation to happen once the configuration +?X: is finished and config.sh was generated, but before the extraction of +?X: the .SH files begins, then this is the place to put these special +?X: code that the .SH files will require to run properly. +?X: +?X: When this unit triggers, Configure is back to the top directory. +?X: +?MAKE:Specific: Config_sh +?MAKE: -pick add $@ %< +?X: +?X: Keep the above ?MAKE: lines and then append your specific code here. +?X: |