citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 957202ccebec80e7104951b75bdaf677b83907dc
parent ca0d8dd50a23736048c042024eb44411b7041014
Author: Kyle Milz <kyle@0x30.net>
Date:   Sat,  9 Jul 2016 22:14:54 -0600

Jamrules: invert if statement

Diffstat:
MJamrules | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Jamrules b/Jamrules @@ -1,14 +1,14 @@ -if ! $(PREFIX) { +if $(PREFIX) { + # PREFIX was set, use absolute install paths. + CITRUN_LIB = $(PREFIX)/lib/libcitrun.a ; + CITRUN_PATH = $(PREFIX)/share/citrun ; +} +else { # No PREFIX means an in tree build. Use absolute paths to local copies. PWD = `pwd` ; CITRUN_LIB = $(PWD)/lib/libcitrun.a ; CITRUN_PATH = $(PWD)/share ; } -else { - # PREFIX was set, use absolute install paths. - CITRUN_LIB = $(PREFIX)/lib/libcitrun.a ; - CITRUN_PATH = $(PREFIX)/share/citrun ; -} # Packaging systems like for build systems to respect this. OPTIM = $(CFLAGS) ;