mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2024-12-22 04:13:31 +01:00
72 lines
2.5 KiB
Makefile
72 lines
2.5 KiB
Makefile
default_target: all
|
|
|
|
Downloads/irpf90.tar.gz:
|
|
wget --no-check-certificate \
|
|
"https://gitlab.com/scemama/irpf90/-/archive/v2.0.5/irpf90-v2.0.5.tar.gz" \
|
|
-O $@.tmp -o /dev/null && mv $@.tmp $@
|
|
|
|
Downloads/ezfio.tar.gz:
|
|
wget --no-check-certificate \
|
|
"https://gitlab.com/scemama/EZFIO/-/archive/master/EZFIO-master.tar.gz" \
|
|
-O $@.tmp -o /dev/null && mv $@.tmp $@
|
|
|
|
Downloads/zmq.tar.gz:
|
|
wget --no-check-certificate \
|
|
"http://github.com/zeromq/libzmq/releases/download/v4.2.5/zeromq-4.2.5.tar.gz" \
|
|
-O $@.tmp -o /dev/null && mv $@.tmp $@
|
|
|
|
Downloads/f77_zmq.tar.gz:
|
|
wget --no-check-certificate \
|
|
"https://github.com/scemama/f77_zmq/archive/v4.2.5.tar.gz" \
|
|
-O $@.tmp -o /dev/null && mv $@.tmp $@
|
|
|
|
Downloads/opam_installer.sh:
|
|
wget --no-check-certificate \
|
|
"https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh" \
|
|
-O $@.tmp -o /dev/null && mv $@.tmp $@
|
|
|
|
_build/irpf90.ok ../bin/irpman ../bin/irpf90: Downloads/irpf90.tar.gz
|
|
export target=irpf90 ; \
|
|
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
|
|
touch _build/$${target}.ok || cat _build/$${target}.log
|
|
|
|
|
|
_build/zmq.ok: Downloads/zmq.tar.gz
|
|
export target=zmq ; \
|
|
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
|
|
touch _build/$${target}.ok || cat _build/$${target}.log
|
|
|
|
_build/ezfio.ok: Downloads/ezfio.tar.gz
|
|
export target=ezfio ; \
|
|
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
|
|
touch _build/$${target}.ok || cat _build/$${target}.log
|
|
|
|
_build/f77_zmq.ok: Downloads/f77_zmq.tar.gz _build/zmq.ok
|
|
export target=f77_zmq ; \
|
|
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
|
|
touch _build/$${target}.ok || cat _build/$${target}.log
|
|
|
|
_build/qmcchemrc.ok: _build/irpf90.ok _build/ezfio.ok
|
|
export target=qmcchemrc; \
|
|
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
|
|
touch _build/$${target}.ok || cat _build/$${target}.log
|
|
|
|
_build/ocaml.ok: Downloads/opam_installer.sh _build/qmcchemrc.ok ../qmcchemrc
|
|
which opam && touch _build/$${target}.ok || \
|
|
( export target=ocaml; \
|
|
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
|
|
touch _build/$${target}.ok || cat _build/$${target}.log ;\
|
|
)
|
|
|
|
_build/ocaml_zmq.ok: _build/ocaml.ok
|
|
export target=ocaml_zmq; \
|
|
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
|
|
touch _build/$${target}.ok || cat _build/$${target}.log
|
|
|
|
|
|
|
|
all: _build/ocaml_zmq.ok _build/ocaml.ok _build/qmcchemrc.ok _build/f77_zmq.ok _build/ezfio.ok _build/zmq.ok _build/irpf90.ok
|
|
@echo "Now, source again the qmcchemrc file"
|
|
@echo "source $$QMCCHEM_PATH/qmcchemrc"
|
|
|