Commit 3cbf4f3b authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

correct logic bug in else branch of the conditional

parent 6c2dd7eb
Loading
Loading
Loading
Loading
+2 −2
Changes for lib/python/Makefile.lammps.python2: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
# Settings that the LAMMPS build will import when this package library is used
# See the README file for more explanation

python_SYSINC = $(shell which python2-config > /dev/null 2>&1 && python2-config --includes || which python-config > /dev/null 2>&1 && python-config --includes || :)
python_SYSLIB = $(shell which python2-config > /dev/null 2>&1 && python2-config --ldflags || which python-config > /dev/null 2>&1 && python-config --ldflags || :)
python_SYSINC = $(shell which python2-config > /dev/null 2>&1 && python2-config --includes || (which python-config > /dev/null 2>&1 && python-config --includes || :))
python_SYSLIB = $(shell which python2-config > /dev/null 2>&1 && python2-config --ldflags || (which python-config > /dev/null 2>&1 && python-config --ldflags || :))
python_SYSPATH =
PYTHON=$(shell which python2 > /dev/null 2>&1 && echo python2 || echo python)
+2 −2
Changes for lib/python/Makefile.lammps.python3: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
# Settings that the LAMMPS build will import when this package library is used
# See the README file for more explanation

python_SYSINC = $(shell which python3-config > /dev/null 2>&1 && python3-config --includes || which python-config > /dev/null 2>&1 && python-config --includes || :)
python_SYSLIB = $(shell which python3-config > /dev/null 2>&1 && python3-config --ldflags || which python-config > /dev/null 2>&1 && python-config --ldflags || : )
python_SYSINC = $(shell which python3-config > /dev/null 2>&1 && python3-config --includes || (which python-config > /dev/null 2>&1 && python-config --includes || :))
python_SYSLIB = $(shell which python3-config > /dev/null 2>&1 && python3-config --ldflags || (which python-config > /dev/null 2>&1 && python-config --ldflags || :))
python_SYSPATH =
PYTHON=$(shell which python3 > /dev/null 2>&1 && echo python3 || echo python)