From 684eb6365f51f8b735e82f1fa5860822af4755e0 Mon Sep 17 00:00:00 2001 From: Ole Hansen <ole@jlab.org> Date: Thu, 11 Oct 2012 17:24:14 -0400 Subject: [PATCH] Add missing ROOTBIN variable. Important if ROOT is installed in system locations (e.g. via rpm) instead of under a common ROOTSYS. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 541d581..735a3c9 100644 --- a/Makefile +++ b/Makefile @@ -65,6 +65,7 @@ endif ROOTCFLAGS := $(shell root-config --cflags) ROOTLIBS := $(shell root-config --libs) ROOTGLIBS := $(shell root-config --glibs) +ROOTBIN := $(shell root-config --bindir) INCLUDES = $(ROOTCFLAGS) $(addprefix -I, $(INCDIRS) ) #INCLUDES = $(ROOTCFLAGS) $(addprefix -I, $(INCDIRS) ) -I$(shell pwd) @@ -163,7 +164,7 @@ $(HDR_COMPILEDATA) $(LIBHALLA) $(LIBDC) $(LIBSCALER): $(ANALYZER)/Makefile $(USERDICT).cxx: $(RCHDR) $(HDR) $(LINKDEF) @echo "Generating dictionary $(USERDICT)..." - $(ROOTSYS)/bin/rootcint -f $@ -c $(INCLUDES) $^ + $(ROOTBIN)/rootcint -f $@ -c $(INCLUDES) $^ install: all cp -p $(USERLIB) $(HOME)/cue/SRC/ana -- GitLab