Commit 25a167ce authored by Erik Asbjørn Mikkelsen Jensen's avatar Erik Asbjørn Mikkelsen Jensen
Browse files

added conditional sourcing of thisroot.sh in Makefile

parent 6a20da66
SHELL := /bin/bash
CXX = $$(root-config --cxx) CXX = $$(root-config --cxx)
CXXFLAGS = -Wall $$(root-config --cflags) CXXFLAGS = -Wall $$(root-config --cflags)
LDLIBS = $$(root-config --glibs) LDLIBS = $$(root-config --glibs)
...@@ -18,7 +16,11 @@ default: nuchart.root ...@@ -18,7 +16,11 @@ default: nuchart.root
all: default $(EXAMPLE_FIGURES) qbn.dat all: default $(EXAMPLE_FIGURES) qbn.dat
nuchart.root: treemaker.py expand-nuchart-QEC expand-nuchart-QBxn-QBxp-QBa nuchart.root: treemaker.py expand-nuchart-QEC expand-nuchart-QBxn-QBxp-QBa
ifeq ($(ROOTSYS), ) # source thisroot.sh if ROOTSYS is not defined
source $$(root-config --bindir)/thisroot.sh && python3 treemaker.py source $$(root-config --bindir)/thisroot.sh && python3 treemaker.py
else
python3 treemaker.py
endif
./expand-nuchart-QEC ./expand-nuchart-QEC
./expand-nuchart-QBxn-QBxp-QBa ./expand-nuchart-QBxn-QBxp-QBa
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment