10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-19 04:22:36 +01:00
quantum_package/Makefile

30 lines
824 B
Makefile
Raw Normal View History

2014-04-01 17:49:29 +02:00
WWW_SERVER = http://qmcchem.ups-tlse.fr/files/scemama
IRPF90_TGZ = irpf90-latest-noarch-src.tar.gz
EZFIO_TGZ = EZFIO.latest.tar.gz
2014-04-07 15:45:19 +02:00
FETCH_FROM_WEB=./scripts/fetch_from_web.py
2014-04-01 17:49:29 +02:00
.PHONY: doc src
2014-04-07 15:45:19 +02:00
default:
./setup_environment.sh
2014-04-01 17:49:29 +02:00
EZFIO:
$(info ===== Fetching EZFIO from the web =====)
2014-04-07 15:45:19 +02:00
@$(FETCH_FROM_WEB) "$(WWW_SERVER)/$(EZFIO_TGZ)" $(EZFIO_TGZ) || \
2014-04-01 17:49:29 +02:00
(echo Unable to download EZFIO : $(WWW_SERVER)/$(EZFIO_TGZ) ; exit 1)
@tar -zxf $(EZFIO_TGZ) && rm $(EZFIO_TGZ)
irpf90:
$(info ===== Fetching IRPF90 from the web =====)
2014-04-07 15:45:19 +02:00
@$(FETCH_FROM_WEB) "$(WWW_SERVER)/$(IRPF90_TGZ)" $(IRPF90_TGZ) || \
2014-04-01 17:49:29 +02:00
(echo Unable to download IRPF90 : $(WWW_SERVER)/$(IRPF90_TGZ) ; exit 1)
@tar -zxf $(IRPF90_TGZ) && rm $(IRPF90_TGZ)
$(MAKE) -C irpf90
doc:
$(MAKE) -C doc
src: irpf90 EZFIO
2014-04-03 01:50:22 +02:00
export QPACKAGE_ROOT=$$PWD ; \
2014-04-01 17:49:29 +02:00
$(MAKE) -C src