mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-19 12:32:40 +01:00
Fix Makefile
This commit is contained in:
parent
9c38d7914c
commit
c69513cdc5
10
Makefile.am
10
Makefile.am
@ -172,9 +172,9 @@ cppcheck.out: $(qmckl_h)
|
|||||||
|
|
||||||
setup_py = $(srcdir)/python/setup.py
|
setup_py = $(srcdir)/python/setup.py
|
||||||
process_header_py = $(srcdir)/python/src/process_header.py
|
process_header_py = $(srcdir)/python/src/process_header.py
|
||||||
pyqmckl_py = $(srcdir)/python/pyqmckl/pyqmckl.py
|
qmckl_py = $(srcdir)/python/qmckl.py
|
||||||
test_py = $(srcdir)/python/test/test_api.py
|
test_py = $(srcdir)/python/test/test_api.py
|
||||||
pyqmckl_wrap_c = $(srcdir)/python/src/pyqmckl_wrap.c
|
qmckl_wrap_c = $(srcdir)/python/src/qmckl_wrap.c
|
||||||
pyqmckl_i = $(srcdir)/python/src/pyqmckl.i
|
pyqmckl_i = $(srcdir)/python/src/pyqmckl.i
|
||||||
pyqmckl_include_i = $(srcdir)/python/src/pyqmckl_include.i
|
pyqmckl_include_i = $(srcdir)/python/src/pyqmckl_include.i
|
||||||
numpy_i = $(srcdir)/python/src/numpy.i
|
numpy_i = $(srcdir)/python/src/numpy.i
|
||||||
@ -189,9 +189,9 @@ python-test: $(test_py)
|
|||||||
cd $(srcdir)/python/test/ && \
|
cd $(srcdir)/python/test/ && \
|
||||||
python test_api.py
|
python test_api.py
|
||||||
|
|
||||||
CLEANFILES += $(pyqmckl_wrap_c) \
|
CLEANFILES += $(qmckl_wrap_c) \
|
||||||
$(pyqmckl_include_i) \
|
$(qmckl_py) \
|
||||||
$(pyqmckl_py)
|
$(pyqmckl_include_i)
|
||||||
|
|
||||||
.PHONY: cppcheck python-test python-install
|
.PHONY: cppcheck python-test python-install
|
||||||
|
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
cp ../include/qmckl.h src/
|
#cp ../include/qmckl.h src/
|
||||||
|
|
||||||
cd src/
|
cd src/
|
||||||
|
|
||||||
# check if qmckl header exists
|
# check if qmckl header exists
|
||||||
if [[ ! -f 'qmckl.h' ]]; then
|
if [[ ! -f 'qmckl.h' ]]; then
|
||||||
echo "qmckl.h NOT FOUND"
|
echo "qmckl.h NOT FOUND in the src/ directory"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ python process_header.py
|
|||||||
SWIG_LIST='pyqmckl.i pyqmckl_include.i numpy.i'
|
SWIG_LIST='pyqmckl.i pyqmckl_include.i numpy.i'
|
||||||
for file in $SWIG_LIST; do
|
for file in $SWIG_LIST; do
|
||||||
if [[ ! -f $file ]]; then
|
if [[ ! -f $file ]]; then
|
||||||
echo "$file NOT FOUND"
|
echo "$file NOT FOUND in the src/ directory"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -12,6 +12,3 @@ cp src/qmckl.py ./
|
|||||||
# install using pip
|
# install using pip
|
||||||
pip install .
|
pip install .
|
||||||
|
|
||||||
cd test
|
|
||||||
python test_api.py
|
|
||||||
cd ..
|
|
||||||
|
Loading…
Reference in New Issue
Block a user