10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-12-22 12:23:30 +01:00
qmcchem/install/Makefile

72 lines
2.5 KiB
Makefile
Raw Normal View History

2019-09-30 20:09:54 +02:00
default_target: all
Downloads/irpf90.tar.gz:
wget --no-check-certificate \
2022-01-11 23:35:22 +01:00
"https://gitlab.com/scemama/irpf90/-/archive/v2.0.5/irpf90-v2.0.5.tar.gz" \
2019-09-30 20:09:54 +02:00
-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
2022-01-11 23:35:22 +01:00
_build/zmq.ok: Downloads/zmq.tar.gz
2019-09-30 20:09:54 +02:00
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
2022-01-11 23:35:22 +01:00
_build/f77_zmq.ok: Downloads/f77_zmq.tar.gz _build/zmq.ok
2019-09-30 20:09:54 +02:00
export target=f77_zmq ; \
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
touch _build/$${target}.ok || cat _build/$${target}.log
2022-01-11 23:35:22 +01:00
_build/qmcchemrc.ok: _build/irpf90.ok _build/ezfio.ok
2019-09-30 20:09:54 +02:00
export target=qmcchemrc; \
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
touch _build/$${target}.ok || cat _build/$${target}.log
2022-01-11 23:35:22 +01:00
_build/ocaml.ok: Downloads/opam_installer.sh _build/qmcchemrc.ok ../qmcchemrc
which opam && touch _build/$${target}.ok || \
2020-04-14 19:14:21 +02:00
( export target=ocaml; \
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
touch _build/$${target}.ok || cat _build/$${target}.log ;\
)
2019-09-30 20:09:54 +02:00
2022-01-11 23:35:22 +01:00
_build/ocaml_zmq.ok: _build/ocaml.ok
2019-09-30 20:09:54 +02:00
export target=ocaml_zmq; \
./scripts/install_$${target}.sh > _build/$${target}.log 2>&1 &&\
touch _build/$${target}.ok || cat _build/$${target}.log
2022-01-11 23:35:22 +01:00
all: _build/ocaml_zmq.ok _build/ocaml.ok _build/qmcchemrc.ok _build/f77_zmq.ok _build/ezfio.ok _build/zmq.ok _build/irpf90.ok
2020-11-02 22:50:11 +01:00
@echo "Now, source again the qmcchemrc file"
@echo "source $$QMCCHEM_PATH/qmcchemrc"
2019-09-30 20:09:54 +02:00