2014-10-23 22:40:21 +02:00
|
|
|
|
BLUE=[34m
|
|
|
|
|
BLACK=(B[m
|
|
|
|
|
|
|
|
|
|
|
2015-01-16 00:48:09 +01:00
|
|
|
|
.PHONY: doc src curl m4 ocaml irpf90 emsl build binary
|
2014-04-01 17:49:29 +02:00
|
|
|
|
|
2014-04-07 15:45:19 +02:00
|
|
|
|
default:
|
2015-01-15 13:59:12 +01:00
|
|
|
|
@echo -----------------------------------------------
|
|
|
|
|
@echo To set up the environment, run
|
|
|
|
|
@echo ./setup_environment.sh
|
|
|
|
|
@echo
|
|
|
|
|
@echo To compile everything, run
|
|
|
|
|
@echo make build
|
2015-01-16 00:48:09 +01:00
|
|
|
|
@echo
|
|
|
|
|
@echo To compile a binary distribution for export, run
|
|
|
|
|
@echo make binary
|
2015-01-15 13:59:12 +01:00
|
|
|
|
@echo -----------------------------------------------
|
|
|
|
|
|
|
|
|
|
ifndef QPACKAGE_ROOT
|
|
|
|
|
build:
|
|
|
|
|
@echo -------------------- Error --------------------
|
|
|
|
|
@echo QPACKAGE_ROOT undefined.
|
|
|
|
|
@echo Run
|
|
|
|
|
@echo ./setup_environment.sh
|
|
|
|
|
@echo or
|
|
|
|
|
@echo source quantum_package.rc
|
|
|
|
|
@echo -----------------------------------------------
|
|
|
|
|
else
|
2015-01-19 10:38:07 +01:00
|
|
|
|
build: EZFIO curl m4 irpf90 emsl
|
2015-01-16 00:48:09 +01:00
|
|
|
|
$(MAKE) -C src
|
|
|
|
|
$(MAKE) -C ocaml
|
2015-01-15 13:59:12 +01:00
|
|
|
|
endif
|
2014-04-01 17:49:29 +02:00
|
|
|
|
|
2014-10-23 22:40:21 +02:00
|
|
|
|
curl: bin/curl
|
|
|
|
|
m4: bin/m4
|
|
|
|
|
irpf90: bin/irpf90
|
2015-01-12 16:58:22 +01:00
|
|
|
|
emsl: EMSL_Basis
|
2014-10-23 22:40:21 +02:00
|
|
|
|
|
2015-01-16 00:48:09 +01:00
|
|
|
|
binary:
|
|
|
|
|
$(QPACKAGE_ROOT)/scripts/make_binary.sh
|
|
|
|
|
|
2015-01-19 15:45:05 +01:00
|
|
|
|
resultsFile:
|
2015-01-19 16:11:36 +01:00
|
|
|
|
$(info $(BLUE)===== Installing resultsFile ===== $(BLACK))
|
2015-01-19 15:45:05 +01:00
|
|
|
|
@sleep 1
|
|
|
|
|
$(QPACKAGE_ROOT)/scripts/install_resultsFile.sh
|
|
|
|
|
|
2014-10-23 23:29:17 +02:00
|
|
|
|
EZFIO: bin/irpf90
|
2015-01-19 16:11:36 +01:00
|
|
|
|
$(info $(BLUE)===== Installing EZFIO ===== $(BLACK))
|
2014-10-23 22:40:21 +02:00
|
|
|
|
@sleep 1
|
2015-01-19 16:11:36 +01:00
|
|
|
|
QPACKAGE_ROOT=$$PWD ./scripts/install_ezfio.sh | tee install_ezfio.log
|
2014-04-01 17:49:29 +02:00
|
|
|
|
|
2015-01-12 16:58:22 +01:00
|
|
|
|
EMSL_Basis:
|
2015-01-19 16:11:36 +01:00
|
|
|
|
$(info $(BLUE)===== Installing EMSL_Basis_Set_Exchange_Local ===== $(BLACK))
|
2015-01-12 16:58:22 +01:00
|
|
|
|
@sleep 1
|
|
|
|
|
QPACKAGE_ROOT=$$PWD ./scripts/install_emsl.sh | tee install_emsl.log
|
|
|
|
|
|
2015-01-12 19:14:00 +01:00
|
|
|
|
zlib:
|
2015-01-19 16:11:36 +01:00
|
|
|
|
$(info $(BLUE)===== Installing Zlib ===== $(BLACK))
|
2015-01-12 19:14:00 +01:00
|
|
|
|
@sleep 1
|
|
|
|
|
QPACKAGE_ROOT=$$PWD ./scripts/install_zlib.sh | tee install_zlib.log
|
|
|
|
|
|
|
|
|
|
|
2015-01-15 13:59:12 +01:00
|
|
|
|
bin/irpf90:
|
2015-01-19 16:11:36 +01:00
|
|
|
|
$(info $(BLUE)===== Installing IRPF90 ===== $(BLACK))
|
2014-10-23 22:40:21 +02:00
|
|
|
|
@sleep 1
|
2015-01-19 16:11:36 +01:00
|
|
|
|
QPACKAGE_ROOT=$$PWD ./scripts/install_irpf90.sh | tee install_irpf90.log
|
2014-04-01 17:49:29 +02:00
|
|
|
|
|
|
|
|
|
doc:
|
|
|
|
|
$(MAKE) -C doc
|
|
|
|
|
|
2014-10-23 22:40:21 +02:00
|
|
|
|
src: irpf90 EZFIO ocaml
|
|
|
|
|
@export QPACKAGE_ROOT=$$PWD ; \
|
2014-04-01 17:49:29 +02:00
|
|
|
|
$(MAKE) -C src
|
2014-10-07 14:45:44 +02:00
|
|
|
|
|
2014-10-23 22:40:21 +02:00
|
|
|
|
bin/curl:
|
|
|
|
|
$(info $(BLUE)===== Installing curl =====$(BLACK))
|
|
|
|
|
@sleep 1
|
|
|
|
|
QPACKAGE_ROOT=$$PWD ./scripts/install_curl.sh | tee install_curl.log
|
|
|
|
|
|
|
|
|
|
bin/m4:
|
|
|
|
|
$(info $(BLUE)===== Installing m4 =====$(BLACK))
|
|
|
|
|
@sleep 1
|
|
|
|
|
QPACKAGE_ROOT=$$PWD ./scripts/install_m4.sh | tee install_m4.log
|
|
|
|
|
|
|
|
|
|
|
2015-01-12 19:14:00 +01:00
|
|
|
|
ocaml: curl m4 emsl zlib
|
2014-10-29 22:25:30 +01:00
|
|
|
|
- rm -f -- ocaml/Qptypes.ml
|
2014-10-29 16:56:16 +01:00
|
|
|
|
$(MAKE) ocaml/Qptypes.ml
|
2014-10-23 22:40:21 +02:00
|
|
|
|
|
|
|
|
|
ocaml/Qptypes.ml:
|
|
|
|
|
$(info $(BLUE)===== Installing ocaml =====$(BLACK))
|
|
|
|
|
@sleep 1
|
|
|
|
|
QPACKAGE_ROOT=$$PWD ./scripts/install_ocaml.sh | tee install_ocaml.log
|
2014-10-07 14:45:44 +02:00
|
|
|
|
|
2015-03-24 09:39:13 +01:00
|
|
|
|
veryclean:
|
2015-03-27 16:16:28 +01:00
|
|
|
|
rm -rf EZFIO
|
2015-03-24 09:39:13 +01:00
|
|
|
|
$(MAKE) EZFIO
|
|
|
|
|
$(MAKE) -C src veryclean
|