• ANNOUNCE: tclmake 2.0

    From blacksqr@21:1/5 to All on Sun Jan 9 22:36:02 2022
    I've done some refurbishing of the original tclmake code released as part of the Ptolemy project at Berkeley, and added some new features. The new code can be found at: https://github.com/TclLab/tclmake

    tclmake is not meant to be a clone of standard make, but it borrows many features and adds a few useful features of its own. Anyone with experience using standard make should find it easy to pick up and use tclmake.

    If you've ever struggled with writing a GNU makefile and thought, 'this would go a lot easier if I could write the update logic in Tcl', then tclmake may be the tool for you.

    Like GNU make, tclmake features simple and pattern rules with targets and prerequisites, make variables and automatic variables with values inserted by macro substitution.

    tclmake can be used as a stand-alone command line program, or as a package within another Tcl project.

    tclmake allows you to define Tcl procs in the makefile, allowing you to organize complex update logic within your makefile.

    You can define a 'MAKE_INIT' make variable to contain a Tcl script. If the variable exists after the makefile has been parsed but before updating of targets begins, this script will be evaluated. The script can for example change directories, load
    packages or otherwise initialize the environment.

    The procedure MAKE_UPDATE is available to be called by any Tcl script in the makefile. The MAKE_UPDATE proc allows you to define any criteria for updating a target, beyond simply comparing file modification times. If MAKE_UPDATE is called in the script
    of one of the target's prerequisites, when prerequisite updating is done and it's time for the target to be updated, the target's update script will be run or not based on the result of a conditional passed to MAKE_UPDATE as an argument.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)