mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-23 04:43:50 +01:00
commit
71c7f14cbb
9
Makefile
9
Makefile
@ -2,7 +2,7 @@ BLUE=[34m
|
|||||||
BLACK=(B[m
|
BLACK=(B[m
|
||||||
|
|
||||||
|
|
||||||
.PHONY: doc src curl m4 ocaml irpf90 emsl build binary
|
.PHONY: doc src ocaml build binary
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@echo -----------------------------------------------
|
@echo -----------------------------------------------
|
||||||
@ -26,16 +26,11 @@ build:
|
|||||||
@echo source quantum_package.rc
|
@echo source quantum_package.rc
|
||||||
@echo -----------------------------------------------
|
@echo -----------------------------------------------
|
||||||
else
|
else
|
||||||
build: EZFIO curl m4 irpf90 emsl
|
build:
|
||||||
$(MAKE) -C src
|
$(MAKE) -C src
|
||||||
$(MAKE) -C ocaml
|
$(MAKE) -C ocaml
|
||||||
endif
|
endif
|
||||||
|
|
||||||
curl: bin/curl
|
|
||||||
m4: bin/m4
|
|
||||||
irpf90: bin/irpf90
|
|
||||||
emsl: EMSL_Basis
|
|
||||||
|
|
||||||
binary:
|
binary:
|
||||||
$(QPACKAGE_ROOT)/scripts/make_binary.sh
|
$(QPACKAGE_ROOT)/scripts/make_binary.sh
|
||||||
|
|
||||||
|
@ -11,23 +11,6 @@ BLACK="(B[m"
|
|||||||
QPACKAGE_ROOT="$( cd "$(dirname "$BASH_SOURCE")" ; pwd -P )"
|
QPACKAGE_ROOT="$( cd "$(dirname "$BASH_SOURCE")" ; pwd -P )"
|
||||||
|
|
||||||
|
|
||||||
if [[ -z "${IRPF90}" ]] ;
|
|
||||||
then
|
|
||||||
make irpf90
|
|
||||||
IRPF90="${QPACKAGE_ROOT}"/bin/irpf90
|
|
||||||
if [[ ! -x "${IRPF90}" ]]
|
|
||||||
then
|
|
||||||
echo $RED "Error in IRPF90 installation" $BLACK
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [[ -z ${OCAMLBREW_BASE} ]]
|
|
||||||
then
|
|
||||||
export OCAMLBREW_BASE="$HOME/ocamlbrew"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat << EOF > quantum_package.rc
|
cat << EOF > quantum_package.rc
|
||||||
export IRPF90="${IRPF90}"
|
export IRPF90="${IRPF90}"
|
||||||
export QPACKAGE_ROOT=\$( cd \$(dirname "\${BASH_SOURCE}") ; pwd -P )
|
export QPACKAGE_ROOT=\$( cd \$(dirname "\${BASH_SOURCE}") ; pwd -P )
|
||||||
|
Loading…
Reference in New Issue
Block a user