Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AUSA
Erik
nuchart
Commits
25a167ce
Commit
25a167ce
authored
Nov 12, 2020
by
Erik Asbjørn Mikkelsen Jensen
Browse files
added conditional sourcing of thisroot.sh in Makefile
parent
6a20da66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
25a167ce
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment