10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-07-23 03:07:34 +02:00
quantum_package/Makefile

55 lines
1.0 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

BLUE=
BLACK=(B
.PHONY: doc src curl m4 ocaml irpf90 emsl build binary
default:
@echo -----------------------------------------------
@echo To set up the environment, run
@echo ./setup_environment.sh
@echo
@echo To compile everything, run
@echo make build
@echo
@echo To compile a binary distribution for export, run
@echo make binary
@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
build: EZFIO curl m4 irpf90 emsl
$(MAKE) -C src
$(MAKE) -C ocaml
endif
curl: bin/curl
m4: bin/m4
irpf90: bin/irpf90
emsl: EMSL_Basis
binary:
$(QPACKAGE_ROOT)/scripts/make_binary.sh
doc:
$(MAKE) -C doc
src:
$(MAKE) -C src
ocaml:
$(MAKE) ocaml/Qptypes.ml
veryclean:
rm -f EZFIO
$(MAKE) EZFIO
$(MAKE) -C src veryclean