citrun

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

commit d91ece6dcf9e22c4ae75053eab9274ef111a1566
parent 385c4fef34fd50c5fab306cdd6698d30bfa07216
Author: Kyle Milz <kyle@0x30.net>
Date:   Sat, 20 Aug 2016 11:54:57 -0600

src: simplify installing of symlinks

Diffstat:
MJamrules | 18++++++++++--------
Msrc/Jamfile | 18+-----------------
2 files changed, 11 insertions(+), 25 deletions(-)

diff --git a/Jamrules b/Jamrules @@ -107,16 +107,18 @@ actions MkWrap chmod 755 $(1) ; } -rule InstLink +rule InstallSyms { - MakeLocate $(1) : $(LOCATE_SOURCE) ; - SEARCH on $(2) = $(SEARCH_SOURCE) ; - Depends files : $(<) ; - Depends $(<) : $(>) ; - Clean clean : $(<) ; + Depends install : $(PREFIX)/share/citrun/$(>) ; + MakeLocate $(PREFIX)/share/citrun/$(>) : $(<) ; + + for i in $(>) + { + SymLink $(PREFIX)/share/citrun/$(i) ; + } } -actions InstLink +actions SymLink { - $(RM) $(<) && $(LN) -s citrun-inst $(<) ; + $(RM) $(<) && $(LN) -s ../../bin/citrun-inst $(<) ; } diff --git a/src/Jamfile b/src/Jamfile @@ -73,32 +73,16 @@ ObjectC++Flags $(INST_SRCS) : -DCITRUN_SHARE=$(CITRUN_SHARE) LINKFLAGS on citrun-inst = `llvm-config --ldflags` ; LLVM_LIBS = bitreader mcparser transformutils option ; - LINKLIBS on citrun-inst += `llvm-config --libs $(LLVM_LIBS) --system-libs` ; Main citrun-inst : $(INST_SRCS) ; # -# citrun-inst symlinks -# -InstLink cc : citrun-inst ; -InstLink gcc : citrun-inst ; -InstLink clang : citrun-inst ; -InstLink clang++ : citrun-inst ; -InstLink g++ : citrun-inst ; -InstLink c++ : citrun-inst ; -InstLink egcc : citrun-inst ; -InstLink eg++ : citrun-inst ; - -CP = cp -PR ; -FILEMODE = 755 ; -InstallFile $(PREFIX)/share/citrun : cc gcc clang clang++ g++ c++ egcc eg++ ; - -# # install # InstallLib $(PREFIX)/share/citrun : libcitrun.a ; InstallShell $(PREFIX)/bin : citrun-wrap citrun-check ; InstallBin $(PREFIX)/bin : citrun-term citrun-gl citrun-inst ; +InstallSyms $(PREFIX)/share/citrun : cc gcc clang clang++ g++ c++ egcc eg++ ; SubInclude TOP src glyphy ;