Skip to content

Directives

Maeiky edited this page Apr 27, 2022 · 10 revisions

Directives are special commands inside argument, they begin with the hash symbol (#)

List of directives:


#Run 'File.(cwc/bat/exe)'

Run a subscript

Example:

#Run "script.cwc"


#Lauch 'File.(cwMake)'

Launch a makeFile, only one instance can be lauched at time

Example:

#Launch "Build.cwMake"


#To 'File.(Type)'

Build a group of files from the current sequence, to a file type (exe/dll/lib)

Example:

xxx #To ""


#Obj 'File.(Type)'

Save list of outputed objects to a variable

Example:

xxx #To ""


#If_HasIncluded (inputs) :: (PassCmd)

Conditionally test is the file is in the dependence list

Example:

#If_HasIncluded "Things.h" :: #run makeThings.cwc


#Copy 'Source' 'Destination'

Copy a file or all folder files to a destination

Example:

#Copy "obj/SrcFile.dll" "bin/"