citrun

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

commit 4b7f628386f8e1a106e4231ecb9c3ae1021cafa3
parent 630da209d09c4e8cbacb62064b8652de88ab82fc
Author: Kyle Milz <kyle@0x30.net>
Date:   Mon, 26 Dec 2016 12:49:26 -0700

Jam: move InstallSyms to where it's used

Diffstat:
MJamrules.tail | 19+------------------
Msrc/Jamfile | 19+++++++++++++++++++
2 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/Jamrules.tail b/Jamrules.tail @@ -1,3 +1,4 @@ + # Quote an entire file and add a variable declaration prefixing the string. rule Stringize { @@ -17,21 +18,3 @@ actions Stringize sed -e '1s/^/static const char *$(1:B) = /' -i.bak $(<) rm $(<).bak } - -# Create installation directories and setup quirky ../../citrun_inst links. -rule InstallSyms -{ - Depends install : $(PREFIX)/share/citrun/$(>) ; - MakeLocate $(PREFIX)/share/citrun/$(>) : $(<) ; - - for i in $(>) - { - SymLink $(PREFIX)/share/citrun/$(i) ; - } -} - -# Used by InstallSyms -actions SymLink -{ - $(RM) $(<) && $(LN) -s ../../bin/citrun_inst $(<) ; -} diff --git a/src/Jamfile b/src/Jamfile @@ -97,6 +97,25 @@ Main citrun_inst : $(INST_SRCS) ; # automatically. LINK on citrun_inst citrun_gl citrun_gltest = $(C++) ; + +# Create installation directories and setup quirky ../../citrun_inst links. +rule InstallSyms +{ + Depends install : $(PREFIX)/share/citrun/$(>) ; + MakeLocate $(PREFIX)/share/citrun/$(>) : $(<) ; + + for i in $(>) + { + SymLink $(PREFIX)/share/citrun/$(i) ; + } +} + +# Used by InstallSyms +actions SymLink +{ + $(RM) $(<) && $(LN) -s ../../bin/citrun_inst $(<) ; +} + # # install #