Here is a compiler example for NSIS (Nullsoft Scriptable Install System) using ".\build" as default - destination directory where the .exe is/should be created:
###############################################
# ---------- NSIS configuration ----------
# --- general --------------------------------------
# $P - project name
# $Pp - path to project directory
# $Pn - project name
# --- compile --------------------------------------
# $I - input full name
# $Ip - input path
# $In - input name
# $Ie - input extension
# $O - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R - release/debug setting for compiler
# --- build ----------------------------------------
# $T - target full name
# $Tp - target path
# $Tn - target name
# $O - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R - release/debug setting for linker
[Settings]
Target =
Working Directory = $Pp\Build
Compiler = makensis.exe
[SettingsInfo]
Target = Zieldateiname
[General]
TargetExt = .EXE
ReleaseOut = Release
DebugOut = Debug
UseFullPaths = 1
UseDosNames = 1
[MakeCommands]
run = Execute Application
[Execute Application]
Title = Execute $T
Cmd0 = $(Working Directory)\$T
Depends = $T
ShowWindow = 1
DisplayConsole = 0
[FileGroups]
FGO = .nsi;
[GroupFormats]
FGO = %s
[Build]
Out = $T
Depends = $FGO
Cmd0 = $(Compiler) $FGO
[.NSI]
Out = $In.exe
Depends = $I
Cmd0 = $(Compiler) $I
###############################################
###############################################
# ---------- NSIS configuration ----------
# --- general --------------------------------------
# $P - project name
# $Pp - path to project directory
# $Pn - project name
# --- compile --------------------------------------
# $I - input full name
# $Ip - input path
# $In - input name
# $Ie - input extension
# $O - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R - release/debug setting for compiler
# --- build ----------------------------------------
# $T - target full name
# $Tp - target path
# $Tn - target name
# $O - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R - release/debug setting for linker
[Settings]
Target =
Working Directory = $Pp\Build
Compiler = makensis.exe
[SettingsInfo]
Target = Zieldateiname
[General]
TargetExt = .EXE
ReleaseOut = Release
DebugOut = Debug
UseFullPaths = 1
UseDosNames = 1
[MakeCommands]
run = Execute Application
[Execute Application]
Title = Execute $T
Cmd0 = $(Working Directory)\$T
Depends = $T
ShowWindow = 1
DisplayConsole = 0
[FileGroups]
FGO = .nsi;
[GroupFormats]
FGO = %s
[Build]
Out = $T
Depends = $FGO
Cmd0 = $(Compiler) $FGO
[.NSI]
Out = $In.exe
Depends = $I
Cmd0 = $(Compiler) $I
###############################################